Absolutly steve, get posting so we can get baking :). I haven't had to do this yet but I know it'll be coming soon.
Tane On 3/26/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Another method that was referenced in this group a while back was to > use tags like > ['model0']['Name'] > ['model1']['Name'] > > Then in your controller, dynamically create a new model for each > 'modelX' that you have and validate() it and then save() it. > This way you also get the proper validation messages passed back from > the model to the view fields. > > I created a component to automatically convert the findAll() results > array to this format for the view, and back to the multiple models and > did the saves automatically. > > All you have to do is a multiModel->get() before your view and then a > multModel->save() call to do your saves. > > I also created a helper to take this model and create the form fields > needed to make an editable grid in the view. > > I tried to create an article in the Bakery for it, but I could not > submit it because of the bugs in the Bakery. > > I may try again - or just post it here if there is interest. > > > Steve Truesdale > > > > On Mar 26, 8:57 am, "francky06l" <[EMAIL PROTECTED]> wrote: > > You can use a "hack" to format the tags using an "indice" ... such as > > ['model'][0]['Name'], ['model'][1]['Name] etc ... > > > > You can use : 'Model/'.$indice.'][fieldname' into the tag name to > > produce the above format .. > > > > On Mar 26, 5:37 am, "cc96ai" <[EMAIL PROTECTED]> wrote: > > > > > I know how to do in PHP, > > > but I have no idea how to work it on cakePHP > > > > > e.g. > > > I have a table of products, > > > and I will list all the products in one form , one page, > > > > > -Name, Desc, Qty, Price, Total > > > -Name, Desc, Qty, Price, Total > > > -Name, Desc, Qty, Price, Total > > > -Name, Desc, Qty, Price, Total > > > > > user will input the Qty in the form, and once he submitted into > > > server > > > it will save into invoice database > > > > > BUt how can cake handle the name in Multi-Row > > > and direction will help . > > > > > Thanks > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
