Reputation: 49
I am developing login functionality in cakephp.
I Created UsersController,in that login function is there and AppController.phpalso is there in app/controller/AppController.php.
I called auth component in AppController.php. But thats not working ..
It's showing AppController not found error ...
how can we extend Appcontroller page in UsersController?
Please clarify this doubt to me any one can help..
Upvotes: 1
Views: 715
Reputation: 675
You need to include the below at the top of your UsersController
class. This will include the AppController
class. It is after this you can now extend the AppController or even make reference to it.
App::uses('AppController', 'Controller');
Upvotes: 3