Still pulling my hair out with Zend_Form and any elements that need to be placed in a sub-array. form->populate() does not work when working with elements within a sub-form that have been set to a parent array using belongsTo() - I think it is actually a bug in Zend_Form->setDefaults() but just wanted to see if anyone else has a) had the same problem and b) managed to work around it...
A:
I usually do $form->subForm->setDefaults($myData) instead of belongTo(). But that was used in multipage forms so I never really needed to pull data for all the subforms...
michal kralik
2010-01-21 12:58:20
A:
This was traced to a bigger problem: http://stackoverflow.com/questions/1486875/zend-form-using-subforms-getvalues-problem
wiseguydigital
2010-03-30 11:30:59