menuvue = new Menuvueutilisateur(); $this->menuvue->getMenuVue("Admin"); $this->billet = new Billet(); $this->commentaire = new Commentaire(); } public function index() { $nbBillets = $this->billet->getNombreBillets(); $nbCommentaires = $this->commentaire->getNombreCommentaires(); $login = $this->requete->getSession()->getAttribut("login"); $chemin = $this->menuvue->getChemin('Admin'); $this->genererVue(array('nbBillets' => $nbBillets, 'nbCommentaires' => $nbCommentaires, 'login' => $login, 'chemin' => $chemin)); } }