Noé Froidevaux-2 wrote:
>
> How can I highlight in red all inputs witch have errors (for example
> with changing the class when the field have an error)?
>
one possibility would be to go via decorator and add/change the styleclass
for the label:
$element->setDecorators(array(
array('ViewHelper',
array('helper' => 'formText')),
array('Label', array('class' =>
'error'))
)
);
best
-Wolfgang
--
German Servicepoint for PHP since 1999: Dynamic Web Pages:
http://www.dynamic-webpages.de/
PHP-Training & Certification http://www.phpzertifizierung.eu/
--
View this message in context:
http://www.nabble.com/Zend_Form-and-highlighting-tp15310206s16154p15334765.html
Sent from the Zend Framework mailing list archive at Nabble.com.