adh = new Adherent(); } public function index() { $codeGcAssureur = $this->requete->getParametreFormulaire("codeGcAssureur"); $idPolice = $this->requete->getParametreFormulaire("idPolice"); $nomAdherent = $this->requete->getParametreFormulaire("nomAdherent"); $etatAdherent = $this->requete->getParametreFormulaire("etatAdherent"); $listeadherents = $this->adh->getListeAdherents($codeGcAssureur, $idPolice, $nomAdherent, $etatAdherent) ; $nbreAdherent = count($listeadherents); $_SESSION["idPolice_C"] = $idPolice; $_SESSION['idPoliceAjax'] = $idPolice; $adherents = json_encode($listeadherents,JSON_NUMERIC_CHECK); $this->genererVueAjax(array('adherents' => $adherents, 'nbreAdherent' => $nbreAdherent)); } public function desactiver() { $idGarant = $this->requete->getParametreFormulaire("idGarant"); $this->gc->desactivergarant($idGarant) ; } }