Hi and thanks in advanced,
I've noticed when using a Display Group that I get markup like so:
<dt> </dt>
<dd>...</dd>
I've tracked this behavior down to Zend_Form_Decorator_DtDdWrapper. Here's
the culprit:
...
$dtLabel = $this->getOption('dtLabel');
if( null === $dtLabel ) {
$dtLabel = ' ';
}
return '<dt id="' . $elementName . '-label">' . $dtLabel . '</dt>' .
'<dd id="' . $elementName . '-element">' . $content .
'</dd>';
The question is, how do I supply the $dtLabel when calling
$form->addDisplayGroup or better yet when passing in a form as Zend_Config?
Preferably, I would like to avoid configuring the decorator every time I
call a display group if that makes sense.
Thanks again.
--
View this message in context:
http://zend-framework-community.634137.n4.nabble.com/Zend-Form-DisplayGroup-setting-the-decorator-label-tp2244036p2244036.html
Sent from the Zend Framework mailing list archive at Nabble.com.