adherent = new Adherent(); $this->police = new Police(); } public function index() { $idCollegePolice = $this->requete->getParametreFormulaire("idCollegePolice"); $_SESSION["idCollegePolice"] = $idCollegePolice; $idPolice = $_SESSION['idPolice_C']; $collegesPolice = $this->police->getListeCollegePolice($idPolice); //var_dump(); if($idCollegePolice > "0"){ $adherents = $this->adherent->getlisteassuresparcollege($idPolice, $idCollegePolice); }else{ $adherents = $this->adherent->getlisteassuresexo($idPolice); } $this->genererVueAjax(array('adherents' => $adherents, 'collegesPolice' => $collegesPolice)); } }