Just include the general configuration from another PHP file:
main.php:
return array
(
....
'components' => array
(
'db' => include('sharedDatabaseConfiguration.php');
)
);
sharedDatabaseConfiguration.php:
return array('host' => ...);
You may need to add a path or something else, depending on where the file is stored.
Edit: Btw, Yii fancy CMap:: mergeArray(), - ( , "" . console.php .