@ -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
$student = $mdl->getAll();
echo $twig->render('usersView.html', ['users' => $student]);
public function getByName(): void
@ -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;
*/
public function getVocabByName(string $name):array{