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
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
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
I used to use this, which is a very cool way in my opinion.
http://bakery.cakephp.org/articles/view/easy-peasy-database-config
Now I deploy from Subversion and don't keep passwords in the
respository (I have to manually add the database.php file with correct
details whenever I deploy to a new