http://groups.google.com/group/cake-php/browse_thread/thread/58ea010f930fab6c/fdff3040db8f9cf6
On Oct 7, 7:18 am, "Dr. Tarique Sani" <[EMAIL PROTECTED]> wrote: > On Tue, Oct 7, 2008 at 10:42 AM, mrconfused <[EMAIL PROTECTED]> wrote: > > Is cake flexible in allow only reads to occur from db A and writes > > only to db B ? > > Yes. > > > 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 > > Use the beforeSave, beforeDelete and beforeFind callbacks in your > app_model to switch the DB > > It is trivial to code it ;) > > Tarique > > -- > ============================================================= > Cheesecake-Photoblog:http://cheesecake-photoblog.org > PHP for E-Biz:http://sanisoft.com > ============================================================= --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
