tarif = new Tarifsactes(); } public function index() { $codeTypeTarifActe = $this->requete->getParametreFormulaire("codeTypeTarifActe"); $codePrestataire = $this->requete->getParametreFormulaire("codePrestataire"); $idPolice = $this->requete->getParametreFormulaire("idPolice"); $msgErreur = ""; if($codeTypeTarifActe == "TPC"){ if ($this->tarif->existeligne($codePrestataire, $idPolice)) { $msgErreur = 'Erreur: Cet tarif existe déjà!/Error: This rate already exists!'; } } $typeTarif = $this->tarif->getCodeTypeTarif($codeTypeTarifActe); $this->genererVueAjax(array( 'typeTarif' => $typeTarif, 'msgErreur' => $msgErreur )); } }