Hey there Nate,
Will this setting last between requests across different controllers?
If so, I assume when I want to change back I call the code above again with the old database name instead. Is this correct?
Sonic
$db =& ConnectionManager::getDataSource("default");
$db->reconnect(array("database" => "new_db"));
Will this setting last between requests across different controllers?
If so, I assume when I want to change back I call the code above again with the old database name instead. Is this correct?
Sonic
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---
