开发者

Customizing the Rendering of a Zend_Form_Element_Radio

开发者 https://www.devze.com 2023-01-17 17:48 出处:网络
I have an object that\'s an instance of a Zend_Form_Element_Radio.I\'d like to customize how these radio buttons are displayed.The manual remarks

I have an object that's an instance of a Zend_Form_Element_Radio. I'd like to customize how these radio buttons are displayed. The manual remarks

Radio elements allow you to specify several options, of which you need a single value returned. Zend_Form_Element_Radio extends the bas开发者_StackOverflow中文版e Zend_Form_Element_Multi class, allowing you to specify a number of options, and then uses the formRadio view helper to display these.

However, I'm not picking on the context of a HOW the formRadio helper should be used, and how that would allow me to customize the display.

Before I dig too deeply into the Zend source, is there something obvious I'm missing, and/or a straight forward explanation of the intended use?


I did a bit of misreading there. Objects instantiated from Zend_Form_Element_Radio have a property named $helper, which defaults to formMyhelper. This property determines the name of the helper that a Zend_Form_Element_Radio will use while rendering itself.

0

精彩评论

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