|
Re: Problems with subForms: msg#00191php.zend.framework.mvc
-- Axel Wüstemann <awu-oRH8NxEK794@xxxxxxxxxxxxxxxx> wrote (on Thursday, 31 July 2008, 07:36 AM -0700): > > You need to clone the sub form in each iteration; otherwise, the same > > object is used, so whichever sub form name is registered last wins. Try > > this instead: > > > > foreach($aSessions as $aSession) { > > $clone = clone $oSubForm; > > $oForm->addSubForm($clone, 'session_'.$aSession['EVENT_ID']); > > } > > > > This works, but regardless things go wrong. I was able to reproduce the issue. Basically, the name is updating, but the id is not. I've put an issue in the tracker for this: http://framework.zend.com/issues/browse/ZF-3819 -- Matthew Weier O'Phinney Software Architect | matthew-C1q0ot2/XZ0@xxxxxxxxxxxxxxxx Zend Framework | http://framework.zend.com/ |
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| Previous by Date: | Re: Problems with subForms: 00191, Axel Wüstemann |
|---|---|
| Next by Date: | Re: Problems with subForms: 00191, Axel Wüstemann |
| Previous by Thread: | Re: Problems with subFormsi: 00191, Axel Wüstemann |
| Next by Thread: | Re: Problems with subForms: 00191, Axel Wüstemann |
| Indexes: | [Date] [Thread] [Top] [All Lists] |
| News | FAQ | advertise |