Thursday, September 25, 2008

Problem with form helper

Hi!

I've got a weird problem with the form helper, maybe someone can help...

$form->input("5.name") creates an input field with name="data[5][name]",
which is pretty much what I expected.

But $form->input("0.name") creates an input field with
name="data[foo][name]", foo is the pluralized modelname.

Why?
And how can I create an input field with name="data[0][name]"?
(Except for creating it manually of course... ;-))
(Cake 1.2.0.7296 RC2)

Regards
Guenther

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

No comments: