On Apr 7, 2:32 am, Ed Propsner <[email protected]> wrote: > I actually just scripted a new function into the controller and let it cache > the page with the new change and then added the login function back in > afterwards and there was no issues. > > I'm stuck on an Ajax login ... have been for a while now. Been through the > book, API, countless tutorials, etc. Still no luck. > > I don't have an individual page for login ... I included the login right > into the default layout via [code] $this->element('login'); [/code] > > The form submits just fine and the user gets logged in ... it's not > redirecting to the view that I want it to. Right now it's acting as there is > no request handler and it's loading the entire default view into the div I > want to update.
I've seen this before. If Cake throws an error the AJAX routine gets back an entire page. But do you want it to redirect? If it's an AJAX request you should be rendering a view, not redirecting to it. 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 To unsubscribe, reply using "remove me" as the subject.
