récupération du fichier

This commit is contained in:
Michael RICOIS 2012-01-30 15:42:37 +00:00
parent 29f441596d
commit ff45c9f73f

View File

@ -26,6 +26,8 @@ class IndexController extends Zend_Controller_Action
->where("dateStop != '0000-00-00 00:00:00'")
->where("error = ''");
$this->view->assign('fileFinish', $commandesM->fetchAll($sql));
}
public function getinfoAction()
@ -46,4 +48,11 @@ class IndexController extends Zend_Controller_Action
}
}
public function getfileAction(){
$this->_helper->layout()->disableLayout();
$this->_helper->viewRenderer->setNoRender(true);
$request = $this->getRequest();
$file = $request->getParam('file');
echo file_get_contents('/sites/dataenrichissement/export/'.file);
}
}