function beforeFilter() {
$this->Auth->userScope = array('User.active' => 'y');
$this->Auth->fields = array('username' => 'email', 'password' =>
'password');
$this->Auth->autoRedirect = false;
$this->Auth->logoutAction = array(Configure::read('Routing.admin') =>
false, 'controller' => 'users', 'action' => 'logout');
$this->Auth->logoutRedirect = array(Configure::read('Routing.admin')
=> false, 'controller' => '/', 'action' => 'index');
$this->loginAction = array('user' => true, 'producer' => false,
'admin' => false, 'controller' => 'user_profiles', 'action' =>
'index');
}
Now when I call any of my controllers in the app/controllers folder
which contain the
function beforeFilter(){
parent::beforeFilter();
}
I get the message missing action WhateverController::1
Also the url looks like http://localhost/site/users/1 instead of how
it should look which is http://localhost/site/user/users/index
If on the other hand I call the controllers with no beforeFilter()
they still seem to work fine.
Any ideas or suggestions appreciated. I've looked everywhere for an
answer to this but all I can come up with is that Auth is breaking
something somewhere (maybe).
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
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?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment