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