Hm, methinks you might make a good use of polymorphic behavior by
AD7six (for your tags model), in addition to the one you would have to
write (regarding the "almost the same" logic in all three models):

http://bakery.cakephp.org/articles/view/polymorphic-behavior

IDE: Zend Studio or Eclips+PDT+cakeopenfile, for "quickies"
EditPlus :-)

On Oct 9, 11:55 pm, Lukas <[EMAIL PROTECTED]> wrote:
> Hi,
>
> lets say i have 4 models as, bs, cs and tags, as, bs, cs has HABTM
> relations to tags model.
>
> The problem is that all logic is almost the same in all 3 models
> except for linking model name.
>
> I'm wondering witch way is the best to  do it?
>
> 1) have "same" methods in each model
> 2) put all logic into separate tags model and
> call it as static method or
> as request action("/tags/add/model_name/tag")
> 3) other method?
>
> p.s. witch IDE (windows) are you using for developing cakePHP
> projects?
>
> Thank you
>
> Lukas
--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to