I forgot to say that I'm instantiang the forms in the controller like this:
for($i = 0; $i < 6; $i++)
{
$form = new ContractLink_Form_ContractOMFOverrideAppendix();
$form->setElementsBelongTo('override' . $i);
if(isset($overrides[$i])) {
$form->populate($overrides[$i]);
}
$formSuper->addSubForm($form, 'OMFOverrideAppendixForm' . $i);
}
Javi
2013/1/22 Javier Garcia <[email protected]>
> Hi,
>
> I have a form that contains 5 subforms of the class A, and another subform
> of the class B.
>
> I want to show in the view first the subforms of the class A but i dont
> know how to retrieve only them..
>
> Should i create another subform that contains the 5 subforms of the class
> A?
> Is there any way to get the subform based on a pattern?
>
> I'm using zf 1.
>
> Javi
>