I've been struggling to decorate a subform. It's almost there but I keep running into a 'gotcha'. I can't figure out how to wrap the innermost dt/dd pairs in a dl element. If I add another HtmlTag the outer one no longer renders and the inner one inherits the outer one's class attribute.

this:

$subForm->setDecorators(array(
    'FormElements',

      array(array('MyHtmlTag' => 'HtmlTag'), array('tag' => 'dl')),

    'Fieldset',
    'DtDdWrapper',
    array('HtmlTag', array('tag' => 'dl',
                         'class' => 'zend_form')),
    'Form'
));


The solution was to use an alias (aaargh! it's in the manual).

Sorry for the noise...

Reply via email to