police = new Police(); $this->police_societe = new Police_sodciete(); } public function index() { $codeGcAssureur = $this->requete->getParametreFormulaire('codeGcAssureur'); $_SESSION['codeGcAssureurStat'] = $codeGcAssureur; if($codeGcAssureur>" "){ $infosDuGarant = $this->police_societe->getInfosGarant($codeGcAssureur); $_SESSION['typeGarant'] = $infosDuGarant['typeGarant']; $polices = $this->police->getPoliceGarant($codeGcAssureur); }else{ $infosDuGarant = array(); $polices = array('code' => "", 'libelle' => ""); } $this->genererVueAjax(array( 'polices' => $polices, 'infosDuGarant' => $infosDuGarant )); } }