Shared logic between models is done with Behaviors. Like the other two answers said, need more information to give a more specific answer.
alek On 9 Okt, 23:55, 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 -~----------~----~----~----~------~----~------~--~---