Config loading

This commit is contained in:
Michael RICOIS 2012-12-19 20:53:30 +00:00
parent c1b1def04d
commit e1951a6468
2 changed files with 1 additions and 2 deletions

View File

@ -42,7 +42,7 @@ if(isset($opts->help))
exit; exit;
} }
$c = Zend_Registry::get('config'); $c = new Zend_Config($application->getOptions());
$db = Zend_Db::factory($c->profil->db->ciblage); $db = Zend_Db::factory($c->profil->db->ciblage);
$commandesM = new Application_Model_EnrichissementIdentifiants($db); $commandesM = new Application_Model_EnrichissementIdentifiants($db);

View File

@ -1,4 +1,3 @@
#!/usr/bin/php
<?php <?php
error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING); error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);