The radio buttons in Zend Framework are displayed in a column (one option per line). How can I remove the br tag from the markup so that all radio options stay in one line?
My decorators are:
private $radioDecorators = array(
'Label',
'ViewHelper',
array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'radio')),
array(array('row' => 'HtmlTag'), array('tag' => 'li')),
);
Use the Zend_Form_Element_Radio::setSeparator($separator) method:
e.g.
The separator defaults to '\<\br />' as shown by getSeparator().
You need to call the setSeparator method on the Zend_Form_Element_Radio object, passing it ''. Here's an example from here:
use options as follows
This will make radio seperation by ' '