The HABTM related question has been posted in some good numbers on stackoverflow, but I'm still looking for a solution to my problem.
I am creating an application that allows you to create themes based on a specific subcategory. When adding a topic, the user requests tags (in the same form). Now that the user has finished adding tags to the topic by clicking the "Add" button, the topic has been successfully added, but there are no tags.
I created a connection table for both themes and tags as tbl_tags_topics.(as defined in cakephp conventions) and correctly defined the hasAndBelongsToMany array in both theme models and tags.
What steps am I missing right now?
I have another question related to this, but I will post it when I can post tags related to the topic to the database. (the functionality is similar to the functionality of adding and attaching stackoverflow tags)
any help is greatly appreciated. also let me know about any good HABTM tutorials if you find them.
thanks
source
share