That doesn't help. I know how to set validation rules in errors. My
question is, how do I manually output those errors when a field
invalidates? For example, if the username field invalidates, what
variable stores the error message I defined in model so that I can
manually output it in the view? I want to know if there is something
like an invalid fields array that is created each time a form
validates?

On Nov 29, 3:15 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> On Nov 29, 2007 3:12 PM, Action <[EMAIL PROTECTED]> wrote:
>
>
>
> > I'm using form helper and I have my validation error messages defined
> > in my model, so the error messages are automatically displayed next to
> > the invalid field in the form.
>
> > However, I want to submit and validate the form using ajax (jquery).
> > How can I access the validation errors (what variable are they stored
> > in) so I can update the html with those messages?
>
> http://tempdocs.cakephp.org/#TOC121845
>
> Hope that helps.
>
> --
> Chris Hartjes
>
> My motto for 2007:  "Just build it, damnit!"
>
> @TheKeyboard -http://www.littlehart.net/atthekeyboard
--~--~---------~--~----~------------~-------~--~----~
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