Sunday, May 3, 2009

Validation messages and redirect issue

I'm having a problem getting validation messages to show up for a
register/sign-up form. I have the form on the home page, which is
accessed through a HomeController.

The register/sign-up form posts to the UsersController, register
function, which does the save. Regardless of the result, it redirects
back to the home page but the form validation messages are gone.

If I move the register/sign-up form to its own url/page, it all works,
so I'm pretty sure that the redirect is wiping out the validation
messages.

Being fairly new to CakePHP, I'd appreciate any suggestions on how to
make this work.

--~--~---------~--~----~------------~-------~--~----~
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+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: