Look in cake/libs/view/helpers/form.php  in the error function.

$defaults = array('wrap' => true, 'class' => 'error-message', 'escape'
=> true);

Add your new class like: 'error-message your-class'.

Although I don't see why you need to do this when you can just use the
error-message class as is.

Rick


On May 26, 3:41 pm, "ross.hagg...@googlemail.com"
<ross.hagg...@googlemail.com> wrote:
> Hi
>
> Is it possible to add an id to the error-message div, tried adding it
> to the $validate array in the model.  I want an id that's specific to
> the form field.
>
> Cheers
>
> R
--~--~---------~--~----~------------~-------~--~----~
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+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to