Amélioration enrichissement
This commit is contained in:
parent
d3c68f3f00
commit
4ba20418c6
@ -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);
|
||||
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user