Hello, I assume that you mean "3 schemas" when you say "3 databases".
I think you can select which schema you want to use on the fly. You can define the dbconfigs on the appropriate file and then switch between them using the model's $useDbConfig var. As of putting the models and controllers on different folders, I'm pretty sure you can hack some way to get it to work, but I think that's definitely a bad practice, so I wouldn't advise you to do so. As a complement of this brief explanation and also to answer to your 'Problem 2.' please read the Model section fo Cake Manual. I'm pretty sure you'll find useful information there, as well as clear answers to your questions. Good luck. On Apr 8, 2:53 pm, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote: > Hi everybody, > > I'm considering converting my application into CakePHP. > > Currently I have 3 databases within my application and the first one > has several tables that are referenced by tables in the other two > databases. > > Problem 1. I have tables that are named the same in at least two > databases. Can models, controllers and views be isolated to a folder > that would correspond to a specific database? Cake Views are already > in a folder by the controller name but models and controllers exist in > the same directories. > > Problem 2. I don't know how to describe a model that has a > relationship with a table from a different database. > > What's the best way to handle this situation in Cake? --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
