After dozens of frustrating attempts to make a tagging system in CakePHP version 2.1, I began to look for a plugin, or some example behavior to get the effect I want, but every one I could find was written in an older version (1.2 or 1.3). I’ve been scouring the web for about a week now, and have not made any progress with this.
Here’s want I want: Question HABTM Tag. In the question add form, one of the fields is a comma-separated list of desired tags. It splits the tags, and already existing tags are merely referenced in the questions_tags table, and becomes a child of the question, while unrecognized tags are created.
Any sort of complete example or plugin that works with CakePHP 2.1 would be much appreciated.
https://github.com/cakedc/tags checkout the 2.0 branch