menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuGestionTatbles('prestataire'); $this->prestataire = new Prestataire(); } public function index($codesearch="",$libellesearch="") { if (isset($_POST['codesearch'])) { $codesearch=$_POST['codesearch']; $libellesearch=$_POST['libellesearch']; } $prestataires = $this->prestataire->getPrestataires($codesearch,$libellesearch); $this->genererVue(array('prestataires' => $prestataires, 'codesearch' => $codesearch, 'libellesearch' => $libellesearch)); } public function supprimer() { $id = $this->requete->getParametre("id"); $this->prestataire->supprimer($id); $this->rediriger("Tblisteprestataire"); } }