From 404b293af7f14299de699560f867721bd12d2145 Mon Sep 17 00:00:00 2001 From: "lucie.goigoux2" Date: Tue, 21 Nov 2023 15:04:50 +0100 Subject: [PATCH] ajout fonction game et changement navbar --- Project/php/controller/StudentController.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Project/php/controller/StudentController.php b/Project/php/controller/StudentController.php index aef6772..2b5697a 100755 --- a/Project/php/controller/StudentController.php +++ b/Project/php/controller/StudentController.php @@ -43,4 +43,12 @@ class StudentController extends UserController $voc = $model->getAll(); echo $twig->render('vocabList.html', ['vocabularies' => $voc, 'userID' => $user->getId(), 'userRole' => $user->getRoles()]); } + + public function gameChoice(): void { + global $twig; + global $user; + $model = new MdlStudent(); + $voc = $model->getAll(); + echo $twig->render('gamesList.html',[ 'userID' => $user->getId(), 'userRole' => $user->getRoles()]); + } } \ No newline at end of file