-
Notifications
You must be signed in to change notification settings - Fork 49
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
Cakephp doesn't load AclExtras #18
Comments
Your AppController.php should contain |
Wow thanks for your speed. Why do I need App::uses() ? because before I don't need it. But now, I have : C:\wamp\www\myProject\app>cake AclExtras.AclExtras aco_sync Error: Plugin AclExtras could not be found. skeleton = Thank you ofr reading. |
Because you do. CakePHP automatically loads Controller during web requests, but the same is not true in unit tests and console applications. You should always import your parents, or things like this can happen. Sounds like you haven't loaded the plugin. |
Ok thank you. |
Hello !
Firstly, I precise i'm a french cooker, so i don't speak english very well.
In the second part of the cookbook 2.0, I have to download the AclExtras plugin. I extract it, I rename the folder name by 'AclExtras' and I put it in www/myProject/plugin.
Next, I add in the bootstrap 'CakePlugin::load('AclExtras')'.
Then, I open my console, and I go in www/myProjet/app and I execute this command : cake AclExtras.AclExtras aco_sync.
I receive an error :
C:\wamp\www\myProject\app> cake AclExtras.AclExtras aco_sync
Fatal error: Class 'Controller' not found in C:\www\wamp\myProject\app\Controller\AppController.php on line 2
Why? I don't understand.
Thank you for your help.
The text was updated successfully, but these errors were encountered: