A brief overview.

You need to create separate entries in your database config file, one
for each database. In your model, specify which database to use. Then,
in your controller, specify which models to use. You can use multiple
models in your controller. If you need to know the specifics of each
of these steps, search or ask here.

Matt

On Apr 8, 9:09 am, "[EMAIL PROTECTED]"
<[EMAIL PROTECTED]> wrote:
> Hmm, I posted this a couple of hours ago but couldn't find it in the
> post list. So, I'm posting it again. Sorry if this is the second time
> you guys are getting it.
>
> ===================================================
> 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 to 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to