type = new Gestionconfiee(); } public function index(){ $id = $this->requete->getParametreFormulaire("id"); $gctypegarant = $this->type->getGcTypeGarantId($id); $this->genererVueAjax(array( 'gc_typegarant' => $gctypegarant )); } public function enregistrer(){ $id = $this->requete->getParametreFormulaire("id"); $codeTypeGarant = strtoupper($this->requete->getParametreFormulaire("codeTypeGarant")); $libelle = strtoupper($this->requete->getParametreFormulaire("libelle")); if(empty($codeTypeGarant) && empty($libelle)){ die(); } $this->type->modifierTypeGarant($codeTypeGarant,$libelle,$id); } }