menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Contrat"); $this->avenant = (new Avenant())->getListeEnCoursrp($_SESSION['idPolice_C']); $this->etat = new Etatcp(); } public function index() { // $chemin = $this->menuvue->getChemin('Contrat'); // $allAderents = (new Adherent())->getAllAderents(); $etats = $this->etat->getEtatcp() ; // $this->genererVue(array('avenant' => $this->avenant,'adherents'=>$allAderents,'etats' => $etats, 'chemin' => $chemin)); $this->genererVue(array('avenant' => $this->avenant,'etats' => $etats)); } }