I have written a script that goes through my application ini.
The problem I am having now is that when I get to the next database, its still selecting from the first database and not the new one.
Is it possible to close a connection and then open a new connection while running a script. Remember this is just a script I have no bootstrap set. I just setup a autoload to that I can load my models.
While looping through sections of the ini
try {
$db = Zend_Db::factory($section->database->type, $section->database->toArray());
Zend_Db_Table::setDefaultAdapter($db);
Zend_Registry::set('db', $db);
} catch(Zend_Db_Adapter_Exception $e) {
continue;
}