Thursday, September 18, 2008

Re: Forms not validating while using EmailComponent?

Note that each ['validate'] key also has a normal ['message'] defined,
saying that the field in question is required.

On Sep 18, 9:29 am, "David C. Zentgraf" <dec...@gmail.com> wrote:
> On 18 Sep 2008, at 21:50, 703designs wrote:
>
> > I got funny preg_match errors
>
> Show us your $validate rules then or go through them with a fine comb.
>
> > $this->Contact->set('$this->data);
>
> I hope this is not copy&pasted as it's invalid PHP.
>
> > This controller's 'add' method just sends out emails
> > and flashes a message to the homepage. What do I need to do for the
> > form to point to this method, but for validation errors to show up on
> > the form (repopulating fields)?
>
> What view is your form in then? The add action will automatically try  
> to render the add view, naturally. If this is not where your form is,  
> override it with $this->render();
>
> > This is not very well-documented, or
> > if it is, I had difficulty finding an answer.
>
> http://book.cakephp.org/view/428/render
--~--~---------~--~----~------------~-------~--~----~
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: