Hi - I'm working with CakePHP 2.0 beta, and having some trouble with
the expected FormHelper functionality.
I have in my view something like this:
$i = 0;
foreach($terms as $term){
echo $this->Form->input('Term.'.$i.'.id');
$i++
}
>From which I expect something like this to be generated:
<input type="text" id="Term0Id" name="data[Term][0][id]" value="">
<input type="text" id="Term1Id" name="data[Term][1][id]" value="">
...
But instead I'm getting:
<input name="data[Term][Term]" type="text" value="" id="TermTerm">
<input name="data[Term][Term]" type="text" value="" id="TermTerm">
...
Can anyone explain this behavior, or help me work around it?
thanks-
Ben.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php