Try the setDecorators accessor.
$groups = $this->getDisplayGroup('groups');
$groups->setDecorators(array(
'FormElements',
'Fieldset',
array('HtmlTag',array('tag'=>'div','class' => 'someclassname'))
));
Thomas Shaw
[email protected]
[email protected]
-----Original Message-----
From: ariawan [mailto:[email protected]]
Sent: Thursday, March 26, 2009 7:41 AM
To: [email protected]
Subject: [fw-general] zend_form setting class in <legend>
Hi Guys,
How do you set the class in legend? ie :
$this->addDisplayGroup(array('day', 'month', 'year'), 'birthday', array(
'legend' => 'Birthday'
) );
$this->setDisplayGroupDecorators(array(
'FormElements',
'Fieldset',
array(Legend, array('class' => 'someclassname'))
)
);
This code above is not working .. I want the result to be
<legend class="someclassname">Birthday</legend>
All helps is appreciated .. Thank you so much.
- Ari -
--
View this message in context:
http://www.nabble.com/zend_form-setting-class-in-%3Clegend%3E-tp22721211p227
21211.html
Sent from the Zend Framework mailing list archive at Nabble.com.