开发者

Zend Framework problems using Element, sub-forms and belongsTo [duplicate]

开发者 https://www.devze.com 2022-12-17 04:21 出处:网络
This question already has answers here: Zend_Form using subforms getValues() problem (4 answers) Closed 2 years ago.
This question already has answers here: Zend_Form using subforms getValues() problem (4 answers) Closed 2 years ago.

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) ha开发者_如何学Pythond the same problem and b) managed to work around it...


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...

0

精彩评论

暂无评论...
验证码 换一张
取 消