I have 2 database called database1, database2 in my cakephp application. before login I have drop down of database(database1,database2).
If user selects database1 then databse1 should be default database for application
and if user selects database2 from drop down then database2 should be default database for application
below is my default database code
public $default = array(
'datasource' => 'Database/Mysql',
'persistent' => false,
'host' => 'localhost',
'login' => 'root',
'password' => '',
'database' => 'database1',
'prefix' => 'tbl_',
//'encoding' => 'utf8',
);
Thanks in advance