yes , in cake you can connect as many connection you want form database.php
in config folder

when you need to write call slave(write) connection and for reading or
fetching data call another.



Regards,
Anuj Chauhan.

On Tue, Oct 7, 2008 at 10:42 AM, mrconfused <[EMAIL PROTECTED]> wrote:

>
> Hello,
>
> I recently was hired to work at a very large corporation. They are
> moving over from their very bad legacy code over to an MVC framework.
> Due to my past experience in Cake, I've suggested this framework for
> our new deployment of our site.
>
> Here is one hurdle that we face.
> We have tables in a Master database. This is replicated to slave
> databases...
>
> One slave database has only read access. The other slave database is
> only for write.
>
> Is cake flexible in allow only reads to occur from db A and writes
> only to db B ?
>
> I know that in the model layer, we can specify useDBConfig flag but
> not sure how to work out the above case of it writing to db B and read
> only from db A
>
> Thanks.
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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