Empty Datasource
CakePHP has many wonderful features. There may be times when you want to take advantage of some of them, but don’t plan on using a datasource. Unfortunately CakePHP doesn’t provide an easy way to do this. The Empty Datasource can be used to accomplish this.
class DATABASE_CONFIG { var $default = array( 'driver' => 'empty', 'persistent' => false, 'host' => 'localhost', 'login' => 'user', 'password' => 'password', 'database' => 'database_name', 'prefix' => '', ); var $test = array( 'driver' => 'empty', 'persistent' => false, 'host' => 'localhost', 'login' => 'user', 'password' => 'password', 'database' => 'test_database_name', 'prefix' => '', ); }
