Thanks John, that's exactly what I was looking for.
On May 2, 1:04 pm, John David Anderson <[EMAIL PROTECTED]>
wrote:
> I run some detection logic in bootstrap to see what server I'm on, and
> set a constant that tells the system where I'm at.
>
> In database.php I have a few class variables to specify each of my db
> setups (staging, qa,production).
>
> Then in AppModel, I specify $useDbConfig using my constant so that all
> my models use the right DB setup.
>
> -- John
>
> On May 2, 2008, at 10:19 AM, basstech wrote:
>
>
>
> > After reading through the configuration documentation, it is nice that
> > CakePHP supports multiple database configurations. However, I am
> > wondering if there is an easy way to simply "turn on" one
> > configuration over another across the entire application.
>
> > In the documentation it says:
>
> > The $default connection array is used unless another connection is
> > specified by the $useDbConfig property in a model.
>
> > Does this mean that in every model of my entire application I will
> > need to specify that I want to use the development connection? Or can
> > I simply set this once, and it will apply application-wide? If so, how
> > is this best accomplished?
>
> > Thanks
> > CJ
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---