How can I add multiple divs or fieldsets to a zend_form using decorators?

If you want to use the same decorator twice in Zend_Form, you can pass array(array('alias'=>'Decorator'), $options) using the setDecorators array syntax. Also, you shouldn't need to use disableDefaultDecorators if you are passing a decorators option $form->addDisplayGroup($flashcardGroup, 'settings', array( 'legend' => 'Cards', 'decorators' => array( 'FormElements', 'Fieldset', // need to alias the HtmlTag decorator so you can use it twice array(array('Dashed'=>'HtmlTag'), array('tag'=>'div', 'class'=>'dashed-outline')), array('HtmlTag',array('tag' => 'div', 'class' => 'settings')), ) ) ).

Thanks, with a little tweaking, that worked. – Mallika Iyer May 13 '10 at 21:07.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions