I have my UsersController which of course extends my app_controller.
In my app_controller I have my $components defined as such:
$components = array('Acl', 'Auth', 'Session', 'RequestHandler');
When I try to access my users index view, I get an error (which means that the Auth component has not been activated in the controller).
BUT
If I place this line direct in my UsersController:
$components = array('Acl', 'Auth', 'Session', 'RequestHandler');
The page works as expected.
My remote server has the latter issue. But my local dev environment seems to extend the $components from the app_controller just fine.
Does anyone know why this is happening? My local server is running php5.3 and my remote is running php5.2.
--Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment