aff = new Tabaffection(); } public function index() { $typeaffection = $this->aff->gettypeaffection(); $this->genererVueAjax(array( 'typeaffection' => $typeaffection )); } public function ajouter(){ $libelle = strtoupper($this->requete->getParametreFormulaire("libelle")); $codeTypeAffection = $this->requete->getParametreFormulaire("codeTypeAffection"); $libelleEng = strtoupper($this->requete->getParametreFormulaire("libelleEng")); $this->aff->ajouteraffection($libelle,$codeTypeAffection,$libelleEng); } }