garantie = new Garantiepolice(); } public function index() { $idPolice=$_SESSION['idPolice_C']; $garantiesbase = $this->garantie->getGarBasePolice($idPolice); $garoptionnelles = $this->garantie->getGarOptPolice($idPolice); $garoptacquises = $this->garantie->getGarOptPoliceAcq($idPolice); $this->genererVueAjax(array('garantiesbase' => $garantiesbase, 'garoptionnelles' => $garoptionnelles, 'garoptacquises' => $garoptacquises)); } public function ajoutergarantie() { $idPolice=$_SESSION['idPolice_C']; $codeGarantie = $this->requete->getParametre("codeGarantie"); $this->garantie->ajouter($idPolice, $codeGarantie); $this->executerAction("index"); } public function supprimergarantie() { $idGarantie = $this->requete->getParametre("idGarantie"); $this->garantie->supprimer($idGarantie); $this->executerAction("index"); } }