getAll(); echo $twig->render('manageVocabListView.html', ['vocabularies' => $voc]); } public function affAllStudent(): void { global $twig; $mdl = new MdlStudent(); $student = $mdl->getAll(); echo $twig->render('usersView.html', ['users' => $student]); } public function getByName(): void { global $twig; $mdl = new MdlStudent(); $name = Validation::filter_str_simple($_GET['listName'] ?? null); $vocab = $mdl->getVocabByName($name); echo $twig->render('manageVocabView.html', ['vocabularies' => $vocab]); } public function quiz(): void { global $twig; $vocabId = $_GET['vocabID']; $mdl = new TranslationGateway(); $allTranslation = $mdl->findByIdVoc($vocabId); $shuffle = $allTranslation; shuffle($shuffle); echo $twig->render('quizzView.html', ['translations' => $allTranslation, 'randomtranslations']); } /* public function flashcard(VocabularyList $v) { $idVoc = $v->getId(); $mdl = new TranslationGateway(); $allTranslation = $mdl->findByIdVoc($idVoc); while(1) { } } }*/ }