Hi all,
Posted yesterday @12:54 pm pdt but the message seems to have gone astray...
Default decorators are <dt> for the labels and <dd> for the form
elements. I would like to wrap each of the <dt/><dd/> in a <dl>.
I've done this:
1 (Zend_Form_SubForm $subForm)
2
3 $subForm->setDecorators(
4 array(
5 array(
6 array('myFormElements' => 'FormElements'),
7 array('separator' => "</dl>\n<dl>"),
8 ),
9 array(
10 array('myDlTag' => 'HtmlTag'),
11 array('tag' => 'dl')
12 ),
13 'Form',
14 'Fieldset',
15 )
16 );
But it always creates one extra empty <dl/> in front of all the other
form elements. I can hide it with CSS but I'd prefer to solve the
problem rather than treat the symptom.
Any helpers out there?
Thanks in advance,
Mike Wright
--
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]