Having (more) issues with zend form decorators. I've got this so far:
Reset overall form decorator:
$this->clearDecorators();
$this->setDecorators(array('FormElements', 'Form'));
I'm adding all my elements to a display group that i want to be inside a fieldset, within a DL
$group->setDecorators(array(
'FormElements',
array('HtmlTag', array('tag' => 'dl')),
'Fieldset'
));
all working so far, now i want to place an image tag immediately before the fieldset. on its own this would work:
$group->setDecorators(array(
'FormElements',
'Fieldset',
array('HtmlTag',array('tag'=>'img','placement'=>'prepend','src'=>'/images/'.$imgs[$i-1]->im_name.'_main.jpg'))
));
but this doesnt (it stops the DL being added inside the fieldset):
$group->setDecorators(array(
'FormElements',
array('HtmlTag', array('tag' => 'dl')),
'Fieldset',
array('HtmlTag',array('tag'=>'img','placement'=>'prepend','src'=>'/images/'.$imgs[$i-1]->im_name.'_main.jpg'))
));
Where am i going wrong?