I want to render multicheckbox with view helper only (no label decorator)
my form is:
$form = new Zend_Form();
$multi = $form->createElement('multiCheckbox', 'foo');
$form->addElement($multi)->setElementDecorators(array('ViewHelper'));
and rendered checkbox is inside label
I tried:
$multi = $form->createElement('multiCheckbox', 'foo');
$multi->setDecorators(array('ViewHelper'));
but result is with label :(
I have ZF 1.6RC2
--
View this message in context: http://www.nabble.com/viewHelper-only-decorator-for-Zend_Form_Element_MultiCheckbox-tp19181211p19181211.html
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论