23 lines
415 B
PHP
23 lines
415 B
PHP
<?php
|
|
class PrestaController extends Zend_Controller_Action
|
|
{
|
|
public function indexAction()
|
|
{
|
|
$request = $this->getRequest();
|
|
|
|
$id = $request->getParam('client');
|
|
|
|
switch($id) {
|
|
//Prestation KOMPASS, livraison rapport pdf
|
|
case '144':
|
|
$siren = $request->getParam('siren');
|
|
$url = '/report/index/siren/'.$siren;
|
|
$this->redirect($url);
|
|
break;
|
|
default:
|
|
//Erreur
|
|
break;
|
|
}
|
|
|
|
}
|
|
} |