Gestion des liens annonces dans les mails

This commit is contained in:
Michael RICOIS 2012-01-21 20:32:03 +00:00
parent 15338de077
commit 22a0d7e1f4

View File

@ -8,7 +8,22 @@ class IndexController extends Zend_Controller_Action
public function indexAction()
{
$this->_forward('entreprise', 'recherche');
$request = $this->getRequest();
$page = $request->getParam('page');
if ($page == 'annonces')
{
$siret = $request->getParam('siret');
$source = $request->getParam('source');
$idAnn = $request->getParam('idAnn');
$lien = '/juridique/annonces/siret/'.$siret;
if (!empty($source)) $lien.= '/source/'.$source;
if (!empty($idAnn)) $lien.= '/idAnn/'.$idAnn;
$this->_redirect($lien);
}
else
{
$this->_forward('entreprise', 'recherche');
}
}
public function portefeuillecsvAction()