Wednesday, January 5, 2011

Logging out from Admin/ that should point to App/Users Controller

http://book.cakephp.org/view/950/Prefix-Routing

Hi I have enabled admin/

When I'm here http://example.com/admin/acl

I find that as I click on my logout link which is currently;
controller=>users, action=>logout

It can't find the users controller, how should I change it?;

In my app controller I have this:

$this->Auth->logoutRedirect = array(Configure::read('Routing.admin')
=> false, 'controller' => 'users', 'action' => 'login')

But it still doesn't work, my logout function:
this->redirect($this->Auth->logout());

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 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: