menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Listeprofil'); $this->profil = new Profil(); } public function index($codesearch="",$libellesearch="") { if (isset($_POST['codesearch'])) { $codesearch=$_POST['codesearch']; $libellesearch=$_POST['libellesearch']; } $profils = $this->profil->getProfils($codesearch,$libellesearch); $this->genererVue(array('profils' => $profils, 'codesearch' => $codesearch, 'libellesearch' => $libellesearch)); } public function supprimer() { $id = $this->requete->getParametre("id"); $this->profil->supprimer($id); $this->rediriger("Listeprofil"); } }