如何在zend中创建子表单? 请举例说明。
答案 0 :(得分:2)
请参阅chapter on Subforms in the ZF Reference Guide:
$subForm = new Zend_Form_SubForm;
$subForm->addElements(
// element configurations
);
$mainForm = new Zend_Form;
$mainForm->addSubForm($subForm, 'subformName');