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

Reply via email to