Controller:  http://cakephp.org/pastes/show/4d62e69e76b4941adda163d6d02d1145

View: http://cakephp.org/pastes/show/6e1a9161f37462791f5f1745f61581fb

I changed it to use session flash messages instead of the error check you were using.  The redirect you wanted to do lost the variables passed to the view initially ( i.e. your error variable).

With sessions it is set until you using the flash() method in the view to remove it and display it.



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to