View Single Post
  #2 (permalink)  
Old 05-22-2008, 03:31 AM
jasonw jasonw is offline
Junior Member
 
Join Date: May 2008
Posts: 12
Default

You can just instantiate another Zend_Db object.
PHP Code:
$db1 Zend_Db::factory('Pdo_Mysql', array(
    
'host'     => 'onehost',
    
'username' => 'webuser',
    
'password' => 'xxxxxxxx',
    
'dbname'   => 'test'
));

$db2 Zend_Db::factory('Pdo_Mysql', array(
    
'host'     => 'adifferenthost',
    
'username' => 'webuser',
    
'password' => 'xxxxxxxx',
    
'dbname'   => 'test'
)); 

Last edited by jasonw : 05-22-2008 at 03:36 AM.
Reply With Quote