You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
use Cake\Event\Event;
//before using
public function beforeFilter(Event $event)
{ ...}
i'll get the error:
Declaration of App\Controller\UsersController::beforeFilter() should be compatible with App\Controller\AppController::beforeFilter(Cake\Event\Event $event) [APP/Controller\UsersController.php, line 12]
In usercontroller.php
If i dont include:
use Cake\Event\Event;
//before using
public function beforeFilter(Event $event)
{ ...}
i'll get the error:
Declaration of App\Controller\UsersController::beforeFilter() should be compatible with App\Controller\AppController::beforeFilter(Cake\Event\Event $event) [APP/Controller\UsersController.php, line 12]
This was not indicated in the blog-auth-example tutorial. http://book.cakephp.org/3.0/en/tutorials-and-examples/blog-auth-example/auth.html#authentication-login-and-logout
The text was updated successfully, but these errors were encountered: