I think the manual talks about using the table/field name of Category/Category and making it a multiple selection dropdown. Then it will save the HABTM relationship automatically on create. Now, I am not sure if there is something automagic if you need to maintain the relationship.
One thing I can say about your current method. You need to place some of the code in the model. I have a function attachOption() which executes the insert. It creates the $SQL and then executes and returns the result of execute (true or false). --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
