How to prepend the label of checkbox element through decorator?
A:
$this->getElement('elementId')->addDecorator('Label'); ?
You can choose the placement as well:
$this->getElement('elementId')->addDecorator('Label', array('placement' => 'APPEND'))
Or do it through a general decorator setting:
'decorators' => array(
array('ViewHelper'),
array('Label', array('placement' => 'APPEND'))
)
Actually all information is available at http://framework.zend.com/manual/en/zend.form.standardDecorators.html
Tom
2010-03-23 09:25:17