|
|
|
@ -32,8 +32,12 @@ class UtilisateurControleur
|
|
|
|
|
$_SESSION['role'] = $utilisateur->getRole();
|
|
|
|
|
$_SESSION['id'] = $utilisateur->getId();
|
|
|
|
|
|
|
|
|
|
// echo $twig->render('accueil.html',[]);
|
|
|
|
|
header('Location: accueil');
|
|
|
|
|
echo $twig->render('accueil.html',[
|
|
|
|
|
'nom' => $_SESSION['nom'],
|
|
|
|
|
'prenom' => $_SESSION['prenom'],
|
|
|
|
|
'role' => $_SESSION['role'],
|
|
|
|
|
'id' => $_SESSION['id'
|
|
|
|
|
]]);
|
|
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
} else {
|
|
|
|
|