I'm new to Cakephp and there's a situation that I'm not sure how to
deal with.
In a controller for some page and I do some custom validation on form
input, for example I see if login-id/password are valid.  If the
validation fails, the controller generates an error message for
display in the login section of the page.
Since the same login is used on every page, it is generated with its
own separate controller.  The html is generated by calling the login
controller with the requestAction method.

The question is how to get the error message to the login controller
for rendering?
I could send it as a parameter in requestAction, but this would
require encoding and decoding it so spaces are not a problem.
I can also use a global variable, but this seems to violate the spirit
of MVC and clean programming in general.

Is there a more straight forward way to do this?


--~--~---------~--~----~------------~-------~--~----~
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?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to