You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
SAE4.01_FORMULAIRE/Source/Controller/ControllerAdmin.php

30 lines
490 B

<?php
namespace Controller;
use Model\ModelAdmin;
class ControllerAdmin
{
public function addQuestion(): void
{
(new ModelAdmin())->addQuestion();
}
public function createForm(): void
{
(new ModelAdmin())->createForm();
}
public function goToAdminPage(): void
{
global $rep, $views;
require_once($rep.$views['admin']);
}
public function addKeyword(): void
{
(new ModelAdmin())->addKeyword();
}
}