Thanks, Do not get me wrong, I know the consequences of working with branches. As a lot people do (I guess), I tend to make a single view for "edit" and "add". Now handling the modelId is good, but I though for, multiple record form; the "indice" would be between the model and field name and not at the end.
No problem, anyway, I can handle the changes Cheers On Oct 11, 12:39 pm, grigri <[EMAIL PROTECTED]> wrote: > Well, 1.2 is still officially in Alpha stage, which means that changes > like this can happen. Whenever you download a new nightly, go through > all of the recent changesets to see exactly what has changed and how > it might affect your app. I fell foul of this a while ago with a big > change on the nesting of form elements (error message placement) and > had to revert. > > For information, the changeset you're referring to > ishttps://trac.cakephp.org/changeset/5744 > > As to whether it's going to stay like this or not, who knows? It's > probably a good thing to include the modelId on form fields; > considering the number of posts here about multiple-record inputs, > which this will go a long way to make easier. > > On Oct 11, 11:19 am, francky06l <[EMAIL PROTECTED]> wrote: > > > Hi Bakers, > > > I work using the 1.2 branch that I update almost daily. ON my latest > > update, I found out that the form.php and helper.php have been > > modified to handle the modelId. This had a big impact on my current > > project, it changes as follow mainly when you have a form for editing, > > having the 'id" (hidden). > > > Before : $form->input('field', array()) > > gives <input ... ... name="data[Model][field]"> > > > Now : $form->input('field, array()) > > gives: <input ... name=data[Model][field][$id]" > > > > also the form tag would be now : > > '/Controllers/action/'.$id > > > That changes quite a lot, the way to handle the form data in the > > controller. I was a bit leazy to test all, so I just did after the > > $form->create(), $this->modelId = null;. With this everything comes > > back as before. > > > Does someone knows if this new way of working will remain as this ? I > > think an option is the $from->create, should handle this or not. > > > Maybe I did not dig enough into the core code to discover an option > > for this (if there is one, it should be set as "default'). > > > Thanks > > F. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
