Zend Db set Default adapter
This commit is contained in:
parent
b663d8fa17
commit
e72c47f2c6
@ -92,6 +92,13 @@ function sendToFtp($localFile, $remoteFile)
|
||||
}
|
||||
|
||||
//==> Début programme
|
||||
$configuration = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini');
|
||||
/**
|
||||
* Connexion à la base de données
|
||||
*/
|
||||
$dbConfig = $configuration->databases;
|
||||
$db = Zend_Db::factory($dbConfig->db->sdv1);
|
||||
Zend_Db_Table_Abstract::setDefaultAdapter($db);
|
||||
|
||||
/**
|
||||
* Liste les fichiers qui peuvent être traités
|
||||
|
Loading…
x
Reference in New Issue
Block a user