On 8/7/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > I know that really good thing called $useDbConfig, but what then if i > want use lots of db:s with same settings, only db is different. > > I don't want to do this manually! > > case 1 use db_1 > case 2 use db_2 > case 3 use db_3 > > and so on up to 100+
This question has been answered before, so search the google group. Short answer: 1) create a behavior if you have to switch DB's when doing reads 2) add beforeSave() to your model if you have to switch DB's when doing saves Hope that helps. -- Chris Hartjes Senior Developer Cake Development Corporation My motto for 2007: "Just build it, damnit!" @TheBallpark - http://www.littlehart.net/attheballpark @TheKeyboard - http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
