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

Reply via email to