public function displayLocAction() { // Création de la vue principale $this->beginCustom('<span class="glyphicon glyphicon-home"></span> Mes locations', null, true); // Création de la vue des appartements $AppartementView = new AppartementView(); $locations = Location::findByIdUtilisateur($_SESSION['id_utilisateur']); $this->content = $AppartementView->generateMesLocations($locations); // Création et affichage de la vue globale $this->end(); }