I want to insert "div" between "fieldset" and "dl":
<form ...>
<dl ...>
<dt><label ...>Label1:</label></dt>
<dd><input type="text" ...></dd>
<dt></dt>
<dd>
<fieldset ...>
<div ...>
<dl ...>
<dt><label ...>Label1:</label></dt>
<dd><input type="text" ...></dd>
</div>
</fieldset>
</dd>
</dl>
</form>
...
$myForm-> addDisplayGroup(array('name','year','country'),'group');
//here I add aliased decorator
$myForm->getDisplayGroup('group')->addDecorator(array('test' => 'HtmlTag'),
array('tag' => 'div','class'=>'scrolable'));
//I save decorators
$saveDecorators=$myForm->getDisplayGroup('group')->getDecorators();
$saveDecorator=$saveDecorators['Zend_Form_Decorator_DtDdWrapper'];
unset($saveDecorators['Zend_Form_Decorator_DtDdWrapper']);
$saveDecorators['Zend_Form_Decorator_DtDdWrapper']=$saveDecorator;
//I restore decorators
$myForm->getDisplayGroup('group')->setDecorators($saveDecorators);
...
After this line decorator with alias "test" replaces default decorator
(Zend_Form_Decorator_HtmlTag).
Help me to resolve this problem.
--
View this message in context:
http://www.nabble.com/Problem-with-aliased-getDecorator-setDecorator-tp19625575p19625575.html
Sent from the Zend Framework mailing list archive at Nabble.com.