去掉控制器方法的后缀名
This commit is contained in:
@@ -8,7 +8,7 @@ class WidgetController extends DefaultController
|
||||
public $permission = ['birthday'];
|
||||
|
||||
// 生日提醒
|
||||
public function birthdayAction()
|
||||
public function birthday()
|
||||
{
|
||||
$rows = DB::table('user')->whereRaw("concat(year(getdata()), DATE_FORMAT(birthday,'-%m-%d')) BETWEEN DATE_FORMAT(getdate(),'%Y-%m-%d') AND DATE_FORMAT(DATE_ADD(getdate(), interval 30 day),'%Y-%m-%d')")->get();
|
||||
return $this->render(array(
|
||||
|
||||
Reference in New Issue
Block a user