Zend中的子表单

时间:2010-03-06 07:31:43

标签: php zend-framework zend-form

如何在zend中创建子表单? 请举例说明。

1 个答案:

答案 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');

另见http://devzone.zend.com/search/results?q=zend+form