The Tag/Tag is just a part of the form, Tag model and Tag is the table column name. Doesn't mean anything. To get the HABTM to display all the stuff as far as I know you have to build everything manually.
On Jun 4, 11:45 am, JDS <[EMAIL PROTECTED]> wrote: > Hi again. I cannot figure this out from the manual or API, sorry. > > Scaffolding does a nice job of automatically displaying HABTM tables > as select multiple boxes. How do I replicate this behavior once the > scaffolding is pulled down? > > Also, there is a vague reference to how this might be achieved, maybe, > but it is not clear. On the "models" page of the > manual,http://manual.cakephp.org/chapter/models, pretty close to the end of > the page, the section titled "Saving hasAndBelongsToMany Relations", > the susection describing "add.html" (/app/views/posts/add.thtml (Tag > association code added)) > > The paragraph after the code example says "The $tags variable here is > just an array where the keys are the IDs of the possible Tags..." but > does not mention any way to get create the $tags array. > > Do I have to create this $tags array manually? For the record, I did > generate an array as described the best I could, but it seems like > there must be an automatic way within the CakePHP panoply. > > Thanks again. Seeyalater.... --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
