Re: change database on the execution

2006-05-06 Thread nate

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 cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~--~~~~--~~--~--~---



Re: change database on the execution

2006-05-05 Thread comechao

Tkz man!!! :D


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