Sunday, 6 April 2008

cakePHP database config

Ok this is cool.

For CakePHP, database configurations are saved in the app/config/database.php file. But notice each config is given a variable name. Any number of configs can be added in this file so that when you're working on a controller you can set the $useDbConfig variable equal to a string of the same name as your config array. Simple.

here's more info

No comments: