The way Cake generates HABTM inputs was changed for 2.0. Its supposed to be less magic, but it doesn't seem like that is the case in this situation. Having some more information on the rest of the form might help.
-Mark On Aug 12, 3:23 pm, handsofaten <bjud...@gmail.com> wrote: > 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php