public function profile() { $infosUser = new UserDAO(); $infos = $infosUser->getInfoUser($_SESSION['idUser']); $profileView = new ProfileView(); $managerFormation = new FormationDAO(); $formations = $managerFormation->getFormationsByUser($infos['id']); echo $profileView->getView($infos['id'], $infos['login'], $infos['email'], $infos['type'], $formations); }