On Tue, Nov 2, 2010 at 5:34 AM, grandioso
<[email protected]> wrote:
> It still doesn't show me the error message I set up in the model :(
>
> I only get the fail message I specified in the controller.
> And in addition, it doesn't show the already-posted data, just the
> clear form which suck really hard.

My guess is that you're calling redirect(). If the save() or
validates() doesn't return true, just let the code execution pass
through the rest of the action. That way, your view is re-displayed.
If you redirect then $this->data and $this->validationErrors will be
empty.

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

Reply via email to