menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue('Demandesreglementsglobal'); $this->periode = (new Periode)->getListe(); $this->exercice = (new Exercice())->getListe(); $this->periode2 = (new Periode)->getListe(); $this->exercice2 = (new Exercice())->getListe(); } public function index() { $chemin = $this->menuvue->getChemin('Demandesreglementsglobal'); $this->genererVue(array('periode' => $this->periode, 'exercice' => $this->exercice, 'periode2' => $this->periode2, 'exercice2' => $this->exercice2, 'chemin' => $chemin)); } }