service = new Tabservice(); } public function index() { $this->genererVueAjax(); } public function ajouter(){ $codeService = strtoupper($this->requete->getParametreFormulaire("codeService")); if (!$this->service->existeligne($codeService)){ $libelle = strtoupper($this->requete->getParametreFormulaire("libelle")); $libelleEng = strtoupper($this->requete->getParametreFormulaire("libelleEng")); $this->service->ajouterservice($codeService,$libelle,$libelleEng); }else{ echo 'Erreur: Le code saisi existe déjà! Veuillez entrer un autre./Error : The code entered already exists! Please enter another.'; die(); } } }