Amélioration enrichissement

This commit is contained in:
Michael RICOIS 2012-01-16 14:20:08 +00:00
parent d3c68f3f00
commit 4ba20418c6
2 changed files with 5 additions and 3 deletions

View File

@ -43,7 +43,6 @@ if(isset($opts->help))
exit;
}
$dbConfig = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'databases');
$db = Zend_Db::factory($dbConfig);

View File

@ -234,15 +234,18 @@ $commande = $commandesM->find(intval($opts->id));
$file = basename($commande->fichier);
$extension = strrchr($file,'.');
$file = str_replace($extension, '', $file);
$outFile = $file.'-'.date('YmdHis').'.csv';
$path = new Zend_Config_Ini(APPLICATION_PATH . '/configs/configuration.ini', 'path');
if (!file_exists($path->data.'/export')) mkdir($path->data.'/export');
$outFile = $path->data.'/export/'.$file.'-'.date('YmdHis').'.csv';
$profilM = new Application_Model_Profil($db);
$profil = $profilM->find($commande->idProfil);
//Chargement des classes metier
require_once realpath(dirname(__FILE__)).'/../config/config.php';
require_once 'framework/fwk.php';
require_once 'Metier/insee/classMInsee.php';
require_once 'framework/common/mysql.php';
$tabExtract = array();
$tabEntete = array();