Use the config path

This commit is contained in:
Michael RICOIS 2013-05-13 13:33:19 +00:00
parent 7196ac3ec1
commit 5bb31b0723

View File

@ -84,7 +84,8 @@ class IndexController extends Zend_Controller_Action
$request = $this->getRequest();
$file = $request->getParam('file', '');
$content_type = 'application/csv-tab-delimited-table';
$path = '/sites/dataenrichissement/export/';
$c = Zend_Registry::get('config');
$path = $c->profil->path->data;
//Envoi du fichier sur la sortie standard
if ( file_exists($path.$file) ) {
header('Content-Transfer-Encoding: none');