I'm fairly new the Zend Framework and I'm stuck.
The following code is a snippet of my form's decorator setting where I'm experiencing a problem:
// prepend errors to top
$this->setDecorators(
array(
'FormElements',
'Form',
array(
'FormErrors',
array(
'placement' => Zend_Form_Decorator_Abstract::PREPEND
)
)
)
);
When errors are rendered on the view I get the following:
<ul class="form-errors">
<li>
<b>First Name: </b>
<ul class="errors">
<li>You forgot to enter your First Name.</li>
</ul>
</li>
</ul>
How do you remove all of the html including the label <b>First Name: </b>
?
Just create custom decorator, try something like this