How can I add a default attribute, class="error", when any for widget is rendered and 0 < count($errors) and a class attribute isn't specified?
e.g. I want, <?php echo $form['example'] ?> - to output, <infput class="error" id="example" name="example" type="text" value=""/ > - if this field has a validation error I looked at the sfWidgetFormFormatter classes, which control the markup around widgets - but don't think these classes can control the markup of the actual widget - like adding a class="error" attribute if this field has a validation error -- You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/symfony-users?hl=.
