Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error not indicated in blog-auth-example docs #3831

Closed
davepartner opened this issue Mar 17, 2016 · 1 comment
Closed

Error not indicated in blog-auth-example docs #3831

davepartner opened this issue Mar 17, 2016 · 1 comment
Milestone

Comments

@davepartner
Copy link
Contributor

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

@markstory
Copy link
Member

Pull request up to add a more complete example.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants