diff --git a/Project/php/controller/StudentController.php b/Project/php/controller/StudentController.php index a8eed32..e6efe62 100755 --- a/Project/php/controller/StudentController.php +++ b/Project/php/controller/StudentController.php @@ -8,25 +8,6 @@ use Exception; class StudentController extends UserController { - public function affAllVocab(): void - { - global $twig; - $mdl = new MdlStudent(); - $voc = $mdl->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; diff --git a/Project/php/model/MdlStudent.php b/Project/php/model/MdlStudent.php index ce822a6..fc96b52 100755 --- a/Project/php/model/MdlStudent.php +++ b/Project/php/model/MdlStudent.php @@ -10,13 +10,7 @@ class MdlStudent extends MdlUser { public function getAll():array{ $gtw = new VocabularyListGateway(); - return $gtw->findAll(); - /* - foreach ($data as $row){ - $AllStudent[] = User($row['id'],$row['password'],$row['email'],$row['name'],$row['surname'],$row['nickname'],$row['image'],$row['extraTime'],$row['group'],$row['roles']); - } - return $AllStudent; - */ + return $gtw->findAll(); } public function getVocabByName(string $name):array{