开发者

Zend Form Element Decorator

开发者 https://www.devze.com 2022-12-24 20:46 出处:网络
How to pr开发者_运维技巧epend the label of checkbox element through decorator?$this->getElement(\'elementId\')->addDecorator(\'Label\'); ?

How to pr开发者_运维技巧epend the label of checkbox element through decorator?


$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

0

精彩评论

暂无评论...
验证码 换一张
取 消