3.7.8.1 useDbConfig

The useDbConfig property specifies which parameter within the database config file you'd like to use. The database configuration file is stored in /app/config/database.php.

Example usage:

class Example extends AppModel {
   var $useDbConfig = 'alternate';
}
  1. class Example extends AppModel {
  2. var $useDbConfig = 'alternate';
  3. }

The useDbConfig property defaults to 'default'.