Use TagBehavior. It does exactly that. http://bakery.cakephp.org/articles/view/simple-tagging-behavior
On Tue, Sep 22, 2009 at 4:28 PM, kicaj <[email protected]> wrote: > > Hmm... Maybe nobody can't understand me, but i show You: > > My table 'tags' fields: id, name, foreign_key, model, created, > modified (table simlar to 'i18n'), and i want adding tags with some > content (add event, add post, add article, etc.) - this is simple, but > I want automatically fill in the fields: 'foreign_key' and 'model'. My > question is: How do I do? > > Each idea will be helpful! > > Thanks a lot! Bye > > On Sep 21, 2:57 pm, kicaj <[email protected]> wrote: >> Hi, I looking-for solutions like >> this:http://mrphp.com.au/code/code-category/cakephp/cakephp-1-2/attach-com... >> But I would like automatic set field 'class' and 'foreign_id' (or in >> beforeSave()) >> >> My vision is: One model Comments for many other Models (Post, Event, >> Article, etc.) > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
