On 12/3/2010 2:41 PM, Jeremy Burns | Class Outfit wrote:
Yup - I know, but I have multiple prefixes; so if I am diverted from, say,
/managers/shops/edit I would need to have 'managers' => false (and therefore the
'admin' => false is irrelevant).
In my core I have:
Configure::write('Routing.prefixes', array('admin', 'user'));
and in my beforeFilter:
$this->Auth->loginAction = array('user' => false, 'admin' =>
false,'controller' => 'users','action' => 'login',);
/user/articles/index properly redirects to /users/login if user is not
logged in.
I'm using 1.3.5 btw.
Check out the new CakePHP Questions site http://cakeqs.org and help others with
their CakePHP related questions.
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en