If I don't use Ajax link to logout it changes the view from users/somePage to users/login instead of logging out and just having the view change in the div containing the login area. Allows user to log in and out without leaving the page they are currently viewing.
On Wed, Apr 7, 2010 at 5:27 PM, Sam Sherlock <[email protected]> wrote: > also logging out via ajax seems overly complex to me - why do you need the > log out to be ajax? > > bearing in mind that I have not attempted ajax login > > - S > > On 7 April 2010 21:46, Ed Propsner <[email protected]> wrote: > >> login.ctp should echo $this->element('login') >> >> LOL ... now that would make the most sense wouldn't it? Leave it to me to >> make things needlessly overly complicated :) >> >> On Wed, Apr 7, 2010 at 4:38 PM, Sam Sherlock <[email protected]>wrote: >> >>> "Websites are like automobiles ... do you really want to drive one that >>>> works 'most' of the time? " >>> >>> >>> only if you don't mind staying where you are :) >>> >>> >>> To be quite honest I'm not even sure how and why I ended up using >>>> redirects ... >>> >>> >>> I would have thought that you should redirect when logging in without >>> ajax and not when ajax >>> >>> I have views/users/login.ctp set up identically to the login element >>> >>> >>> login.ctp should echo $this->element('login') >>> >>> also firephp maybe helpful to you >>> >>> - S >>> >>> >>> >>> >>> 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]<cake-php%[email protected]>For >>> more options, visit this group at >>> http://groups.google.com/group/cake-php?hl=en >>> >> >> 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]<cake-php%[email protected]>For >> more options, visit this group at >> http://groups.google.com/group/cake-php?hl=en >> > > 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]<cake-php%[email protected]>For > more options, visit this group at > http://groups.google.com/group/cake-php?hl=en > 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
