$form->error(...., array('div' => 'classForDiv', 'id' => 'id for field'));

This would give you a wrapping div and/id and id on the field.

or:

FormHelper::isFieldError (...)

returns true on error in field.


On Feb 7, 2008 1:24 PM, <[EMAIL PROTECTED]> wrote:

>
> The problem is more cosmetic where I have a line box around the
> errors. I need to be able to detect errors before I use form->error()
> otherwise I have a visible box with no content. I am hoping I missed
> something in API doc that behave like the old
> HtmlHelper::validateErrors.
> >
>

--~--~---------~--~----~------------~-------~--~----~
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