Correct database création

This commit is contained in:
Michael RICOIS 2013-09-29 17:33:46 +00:00
parent 3c1d77f9a6
commit 000aad0357

View File

@ -33,6 +33,7 @@ try {
//Options //Options
array( array(
'help|?' => "Displays usage information.", 'help|?' => "Displays usage information.",
'cron' => "Mandatory option in crontab",
'file=s' => "Manually define the file to process", 'file=s' => "Manually define the file to process",
'client=s' => "Define the client name for getting the file manually", 'client=s' => "Define the client name for getting the file manually",
'debug' => "Send a mail for debug", 'debug' => "Send a mail for debug",
@ -53,7 +54,7 @@ if( isset($opts->help) || count($opts->getOptions())==0 )
} }
$c = new Zend_Config($application->getOptions()); $c = new Zend_Config($application->getOptions());
$db = Zend_Db::factory($c->profil->metier); $db = Zend_Db::factory($c->profil->db->metier);
Zend_Db_Table::setDefaultAdapter($db); Zend_Db_Table::setDefaultAdapter($db);
$fluxM = new Application_Model_Sdv1FluxFileOut(); $fluxM = new Application_Model_Sdv1FluxFileOut();