while adding this element in to the form the labels are not well decorated. Can anyone help me, that how to decorate radio buttons with label in zend form, i,e how to show labels and radio buttons in a single line...
$this->addElement('radio', 'FORM_EXITS',
array('decorators' => $this->elementDecoratorsTr ,'label' => 'Exists :',
'multiOptions' => array(
'1' => 'Yes',
'0' => 'No',
),
'Separator' => ''
));
public $elementDecoratorsTr = array(
'ViewHelper',
'Description',
'Errors',
array(array('data'=>'HtmlTag'), array('tag' => 'td')),
//array('ViewScript', array('viewScript' => 'users/adduser.phtml')),
array('Label', array('tag' => 'td', 'style' => 'float:right;')),
array(array('row'=>'HtmlTag'), array('tag'=>'tr', 'closeOnly' => true))
);