I'm creating an app where users simply upload pics. I've successfully
established an HABTM relationship bw my 'pic' model and my 'tag' model
and have a table w two foreign keys called 'pics_tags'. Adding new
'tags' updates this table just fine.
However, I'm stuck when it comes to assigning already existing tags to
already existing pics. I can currently click on a pic and view its
associated tags and generate a list of available tags in a select
form. However, I get a slew of errors if I try to submit a tag in the
list. Currently, cake thinks I'm trying to add a new pic instead of
updating my 'pics_tags' table.
Do I need a custom function in my pics_controller to handle updating
my 'pics_tags' table?
Can anyone point me to a tutorial for building a tagging system?
Thanks.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---
No comments:
Post a Comment