2009年3月26日星期四

[fw-mvc] remove decorator

Hi :)

How do I remove the dt/dd wrapper from a hidden form element?

-Ed


My form has:

$ID = new Zend_Form_Element_Hidden("ID");
$ID->removeDecorator('DtDdWrapper');
$this->addElement($ID);

But the resulting output is still:

<dt>&nbsp;</dt>
<dd>
<input type="hidden" name="ID" value="7" id="ID"></dd>

没有评论: