I've posted this elsewhere on the internets, and finally I'm bringing it to you guys.
Just started using cake and it's fantastic! Love it. Here's my little problem: I have a form that I am suppressing with jQuery and doing an AJAX call to a controller 'UsersController' with a 'login' action that is working automagically using the built in Auth component. I'm following ProLoser's example from the bakery: http://bakery.cakephp.org/articles/view/serving-up-actions-as-ajax-with-jquery-in-a-few-simple-steps The only exception is that I'm using the livequery jQuery plugin to support the "submit" event. My homepage has a copy of the form inside a div, and the the 'users/ login.ctp' view has a copy of the form as well. When the user submits the form, jQuery removes the form from the div. The form is submitted via ajax to the UsersController, and if the user has failed to authenticate, he is served the 'users/login.ctp' view inside the same div using ajax. This all works. If the user DOES authenticate, he is also served the login.ctp inside the div. Instead, I want to change the view to something that says "welcome, etc. etc. etc." with no login form. I've bashed my brains into the cookbook, the API, and google to no avail. I feel like this is something super easy to do, but I'm barking up the wrong trees. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
