Thanks for your reply alan. Actually i thought about that. But was
hoping there is some easier solution using cake features. Maybe this
should be a feature request?
On Apr 30, 11:44 pm, alan <[EMAIL PROTECTED]> wrote:
> I would think that you would need to do some custom parsing here... I
> usually solve this by creating a higher dimensional array... perhaps
> something along the lines of:
>
> ----------------------------------
> <input name="data[m][item1][Model][Field1]"/>
> <input name="data[m][item1][Model][Field2]"/>
> ----------------------------------
> <input name="data[m][item2][Model][Field1]"/>
> <input name="data[m][item2][Model][Field2]"/>
> ----------------------------------
>
> Then, in the controller, you simply do something like:
>
> foreach ( $this->data['m'] as $itemkey => $data ) {
> $this->Model->create();
> if ( $this->Model->save($data) ) {
> ...
> }
>
> }
>
> thanks,
> -alan-
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---