typebon = new Typebon(); } public function index() { $idTypebon = $this->requete->getParametre("idTypebon"); $typebon = $this->typebon->getUnTypebon($idTypebon); $typegestion = $this->typebon->getListeGestion(); $this->genererVueAjax(array('typebon' => $typebon, 'typegestion' => $typegestion)); } public function enregistrermodif() { $idTypebon = $this->requete->getParametre("idTypebon"); $dureeVie = $this->requete->getParametreFormulaire("dureeVie","numerique"); $codeGestionBon = $this->requete->getParametre("codeGestionBon"); // echo "idTypebon => $idTypebon ; dureeVie => $dureeVie ; codeGestionBon => $codeGestionBon"; // exit(); $this->typebon->enregistrermodif($idTypebon, $dureeVie, $codeGestionBon); // $this->genererVueAjax(); } }