David Mintz-3 wrote:
> 
> If you are considering how to conveniently sort out the incoming request
> parameters POSTed from your form, you can namespace -- or sort of
> psuedo-namespace -- your form vars with a couple of techniques.
> 
> One is use array notation, as in <input name="tableOne[someField]"> <input
> name="tableOne[someOtherField]"> and then all the data meant for table is
> available to your controller as an array:  $this->_getParam('tableOne'). A
> problem arises if one of the form fields itself needs to be an array, but
> it
> works if the data is scalar.
> 

The same can be achieved using subforms for each table, see the
documentation. The form data are then automatically presented as an array of
arrays for each subform / table




-----
Second Start
Stamrecht BV oprichten 
--
View this message in context: 
http://zend-framework-community.634137.n4.nabble.com/Inserting-data-into-2-tables-in-1-form-tp653372p3571228.html
Sent from the Zend Framework mailing list archive at Nabble.com.

-- 
List: [email protected]
Info: http://framework.zend.com/archives
Unsubscribe: [email protected]


Reply via email to