我正在開發一個zendframework項目。我的註冊頁面中包含一個字段「我同意使用條款」,附近有一個複選框。在這裏,我想使「使用條款」爲紐帶,但我是新來的Zend和PHP5。我檢查了代碼,並在下面顯示‘我同意使用條款’將HTML放在Zend_Form_Element標籤中
'Agree' => array ('Checkbox', array (
'Required' => true,
'Decorators' => $element Decorators,
'Label' => 'I Agree to the Terms of Use',
)),
代碼
我怎麼會讓使用條款爲紐帶?
我會建議使用標題,如: 「鏈接一個Zend_Form_Element生成的標籤」 – 2011-03-01 09:43:47