I see what you mean, but I'm not sure that you can put 'action' => '/'
or 'controller' => '/'.

If you want the index action, just the omit the action from the array,
and if you send the '/' as a param, cake will find the appropriate
controller/action pair.

On Jul 2, 5:12 pm, leo <[EMAIL PROTECTED]> wrote:
> On 2 Jul, 16:54, "dr. Hannibal Lecter" <[EMAIL PROTECTED]> wrote:
>
> > Hmmm.. shouldn't it be:
>
> > $this->Auth->loginRedirect = array('controller' => 'users'); // no
> > action
> > $this->Auth->logoutRedirect = '/'; // no array
>
> I'm sure you're right, but the manual says this:
>
>     $this->Auth->loginRedirect = array('controller' => 'members',
> 'action' => 'home');
>     $this->Auth->logoutRedirect = array('admin' => false, 'controller'
> => 'members', 'action' => 'logout');
>
> Troublesome blighter to get set up, this one. I heartily recommend
> Chris Hartjes posts on this subject.
>
> http://www.littlehart.net/atthekeyboard/2007/09/11/a-hopefully-useful...http://www.littlehart.net/atthekeyboard/2007/11/20/follow-up-to-a-hop...
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to