Hi,
I have a problem. I made a small form which has some validators. If
validation fails I want to make labels bold, but instead tags get displayed
on the screen. I use firefox 3. You can see my form here:
http://narocilo.s-media.si
My Label decorator is:
<?php
class Narocilnica_Form_Decorator_LabelError extends
Zend_Form_Decorator_Label{
public function getLabel(){
$element = $this->getElement();
$errors = $element->getMessages();
if (empty($errors)) {
return parent::getLabel();
}
$label = ''.$element->getLabel().'';
$element->setLabel($label);
return parent::getLabel();
}
}
Best regards
Matej
--
View this message in context:
http://www.nabble.com/html-tags-dont-get-rendered-after-validation-tp18661344p18661344.html
Sent from the Zend Framework mailing list archive at Nabble.com.