I can't seem to find the right post in the list archives and it's evading me
in the documentation.
 
How to remove the dd/dt decorators from a form element. 

I seem to have forgotten how to write this today. 

My decorators currently are:

$Decorators['default_hidden_element'] = array(
                    array('ViewHelper'),
                    array('Description'),
                    array('Errors'),
                    array('HtmlTag', array('tag' => '')),
                    array('Label', array('tag' => ''))
                );

Assigned like so: 

$element = new Zend_Form_Element_Hidden('akey');
$element->setDecorators($Decorators['default_hidden_element']);

That produces this html code:
<>
<input type="hidden" name="key" value="1" id="key"></>

I'm trying to get:
<input type="hidden" name="key" value="1" id="key">


Can someone refresh my memory on this, please ...

Thanks
Terre

Reply via email to