menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuGestionTatbles('affection'); $this->affection = new Affection(); } public function index($codesearch="",$libellesearch="") { if (isset($_POST['codesearch'])) { $codesearch=$_POST['codesearch']; $libellesearch=$_POST['libellesearch']; } $affections = $this->affection->getAffections($codesearch,$libellesearch); $this->genererVue(array('affections' => $affections, 'codesearch' => $codesearch, 'libellesearch' => $libellesearch)); } public function supprimer() { $id = $this->requete->getParametre("id"); $this->affection->supprimer($id); $this->rediriger("Tblisteaffection"); } }