views:

73

answers:

1

How subforms created in zend? Please explain with an example.

+1  A: 

See the 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');

Also see http://devzone.zend.com/search/results?q=zend+form

Gordon