Ok, so I post a question and then the answer jumps out of the list archives
..

$Decorators['default_hidden_element'] = array(
                    array('ViewHelper')
                );

This removes the dd/dt from the element.

Arg ...

Terre  

-----Original Message-----
From: Terre Porter [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, December 10, 2008 4:21 PM
To: [email protected]
Subject: [fw-general] refresh memory please, remove the dd/dt from form
elements

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