<something.like.a.phenomenon@gmail.com> 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 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:
Post a Comment