type = new Gestionconfiee(); } public function index(){ $this->genererVueAjax(); } public function enregistrer(){ $codeTypeGarant = strtoupper($this->requete->getParametreFormulaire("codeTypeGarant")); $libelle = strtoupper($this->requete->getParametreFormulaire("libelle")); if(empty($codeTypeGarant) && empty($libelle)) { die(); } if (!($this->type->existeTypeGarant($codeTypeGarant))) { $this->type->ajouterTypeGarant($codeTypeGarant,$libelle); } else{ echo 'Erreur: Le code saisi existe déjà! Veuillez entrer un autre./Error : The code entered, already exists! Please enter another.'; die(); } } }