In AppController::beforeFilter() $this->Auth->logoutRedirect = array('controller' => 'pages', 'action' => 'display', 'home);
Or 'index', or whatever points to your default page. On Thu, Aug 6, 2009 at 1:40 PM, FrederickD<manzanillo.engl...@gmail.com> wrote: > > Would you show me how you put the element to log in on the side of > your pages? I've been wondering how to do that, and then turn it off > if logged in. > > For now I am using a login.ctp and a button on the navigation bar that > flips between "Log In" and "Log Out" depending on if the user is > logged in or not. > > All is working except for when the user clicks "Log Out". Now the user > is directed BACK to the login.ctp, and I want it to go to the static > home page. > > I know it is something simple, but I am missing it. > > Part of the answer for me was here > http://book.cakephp.org/view/395/autoRedirect > > What do you think? > > FD > > On Aug 3, 7:09 pm, Styles <counterstrike.sty...@gmail.com> wrote: >> I currently have an element that sits on the side of all my pages. It >> has the login form. I want to know, how can I stop CakePHP from >> redirecting the user to /users/login (default) when the login fails >> and they putting up the flash message there saying, you failed the >> login. > > > > --~--~---------~--~----~------------~-------~--~----~ 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+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---