-- Jacky Chen <[EMAIL PROTECTED]> wrote
(on Wednesday, 07 May 2008, 02:36 PM +0800):
> I want render multiCheckbox or Radio with no <br />\n separator in
> Zend_Form,how can i do that? I look for the code at
> Zend_Form_Decorator_ViewHelper,there is no listsep parameter to be passed.
All element attributes are passed as attributes to the view helper. So,
simply set a 'listsep' attribute on your form element:
$element->listsep = '';
or when adding the element to the form:
$form->addElement('radio', 'foo', array(
'listsep' => '',
// ...
));
--
Matthew Weier O'Phinney
Software Architect | [EMAIL PROTECTED]
Zend - The PHP Company | http://www.zend.com/