On Apr 5, 2007, at 4:14 PM, rtconner wrote:
> > Is there a way to have two applications share a Model, and possibly > some componants and helpers also? > > I realize in general most applications will have different data sets > and sharing Models will make no sense at all. However if you use the > same model twice with two different database configs, now you are > using similar data sets, just on different databases. Also it has > crossed my mind that I could have an internal and external application > both sharing the same data (Why not share models also?). I know I can > just copy and paste files into the new directories. That gets to be a > pain when you modify files and add code or fix bugs. Now you have to > maintain two files, such a pain. > > In short, if I have two applications both with User tables, I only > want to write and maintain one User Model class. > > Any ideas? Only thing I can think of is to put them into the cake/ > libs/ > models folder. I'm not even sure if that would work anyways. Didja try a symlink? You might also just check the Model into SVN and use it in both places. -- John --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" 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 -~----------~----~----~----~------~----~------~--~---
