44 lines
897 B
PHP
44 lines
897 B
PHP
<?php
|
|
class IdentiteController extends Zend_Controller_Action
|
|
{
|
|
|
|
public function init()
|
|
{
|
|
/* Initialize action controller here */
|
|
}
|
|
|
|
public function indexAction()
|
|
{
|
|
$this->_forward('identite', 'fiche');
|
|
}
|
|
|
|
public function ficheAction()
|
|
{
|
|
$request = $this->getRequest();
|
|
$siret = $request->getParam('siret');
|
|
$id = $request->getParam('id', 0);
|
|
|
|
//Modification du titre
|
|
if(empty($siren)){
|
|
$titre = 'Identifiant '.$id;
|
|
} else {
|
|
$titre = 'Siret '.$siret;
|
|
}
|
|
$this->view->headTitle()->append('Identité - '.$titre);
|
|
|
|
//Récupération des informations
|
|
require_once 'Scores/WsScores.php';
|
|
$ws = new WsScores();
|
|
$infos = $ws->getIdentite($siret, $id);
|
|
$this->view->assign('infos', $infos);
|
|
}
|
|
|
|
public function fichepcAction(){}
|
|
|
|
public function etablissementsAction(){}
|
|
|
|
public function liensAction(){}
|
|
|
|
public function inseeAction(){}
|
|
|
|
} |