By using the model variable $useDbConfig, it is also possible to use
different models with different databases, by setting up multiple
connection settings variables in config/database.php.

The method in the thread posted above can now be done as follows:

$db =& ConnectionManager::getDataSource('default');
$db->reconnect(array('database' => 'newDb'));


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---

Reply via email to