Load configuration for good path of file

This commit is contained in:
Michael RICOIS 2012-06-19 16:05:29 +00:00
parent e6cbf1a006
commit 1ffa5eebf1

View File

@ -226,10 +226,10 @@ class EnrichissementController extends Zend_Controller_Action
if(!empty($result)) {
$result = $result->toArray();
$date = substr($result['dateAdded'],0,4).substr($result['dateAdded'],5,2);
$config = Zend_Registry::get('configuration');
$path = $config->path->data.'/'.$date.'/';
$file = $result['fichier'];
}
Zend_Registry::get('firebug')->info($path.$file);
$content_type = 'application/csv-tab-delimited-table';
//Envoi du fichier sur la sortie standard
if ( file_exists($path.$file) ) {