First you need to remove the DtDdWrapper decorator from the form. Secondly, from each element, get a Label decorator and set the tag property to null, and finally, remove the HtmlTag decoder for each element.
ala:
<?php
class My_Form extends Zend_Form
{
public function init()
{
$this->removeDecorator('HtmlTag');
foreach ($this->getElements() as $element) {
$element->getDecorator('Label')->setTag(null);
$element->removeDecorator('HtmlTag');
$element->removeDecorator('DtDdWrapper');
}
}
}
This will leave the file element as an important element of the File Element decor intact, with the exception of the rest of all your elements.
source
share