-- Ian Spare <ian.sp...@me.com> wrote (on Thursday, 19 March 2009, 07:37 AM +0100): > I'm struggling a little to setup an ini file the way I want. > > I want to specify some decorators and just can't seem to do it so I > ended up grabbing the element and modifying it like this : > > $buttonDecorators = array('ViewHelper', array(array('data' => > 'HtmlTag'), array('tag' => 'td', 'class' => 'xxxx')), > array(array('label' => 'HtmlTag'), array('tag' => 'div', 'placement' => > 'prepend')), array(array('row' => 'HtmlTag'), > array('tag' => 'div')), ); > $deleteButton = $subform[$counter]->getElement('delete'); > $deleteButton->setDecorators($buttonDecorators); > > which works fine but it's horrible :( can anyone enlighten me how to do > this in the ini file?
form.delete.decorators.data.decorator = "HtmlTag" form.delete.decorators.data.options.tag = "td" form.delete.decorators.data.options.class = "xxxx" form.delete.decorators.label.decorator = "Label" form.delete.decorators.label.options.tag = "dev" form.delete.decorators.label.options.placement = "prepend" form.delete.decorators.row.decorator = "HtmlTag" form.delete.decorators.row.options.tag = "div" -- Matthew Weier O'Phinney Software Architect | matt...@zend.com Zend Framework | http://framework.zend.com/