How would I format Zend_Form_Element_Radio so the label follows the input?

前端 未结 6 946
猫巷女王i
猫巷女王i 2021-01-05 20:41

The default decorator for the Zend_Form_Element_Radio is

6条回答
  •  执念已碎
    2021-01-05 20:51

    Try:

    $this->setElementDecorators(array(
            'ViewHelper',
             array('Label',array('placement' => 'APPEND')),
        ));
    

    Check out zendcasts video about it its really great. Decorators can be really complicated with ZF but this video really explains it well.

提交回复
热议问题