Hey guys,
Is there a way to grab all the DB adapters set in the config file? (CDbConnection)
For example if I have two adapters in my config file like this:
'db1' => array(
'class' => 'CDbConnection',
'connectionString' => 'mysql:host=localhost;dbname=db1',
'username' => 'db1',
'password' => 'db1',
'charset' => 'utf8',
),
'db2' => array(
'class' => 'CDbConnection',
'connectionString' => 'mysql:host=localhost;dbname=db2',
'username' => 'db2',
'password' => 'db2',
'charset' => 'utf8',
),
I would like to have an array with the name given (db1, db2). Is that even possible?
Thank you,