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.
34 lines
608 B
34 lines
608 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;
|
|
|
|
$categories = (new ModelAdmin())->getCategories();
|
|
$questions = (new ModelAdmin())->getQuestions();
|
|
|
|
require_once($rep.$views['admin']);
|
|
}
|
|
|
|
public function addKeyword(): void
|
|
{
|
|
(new ModelAdmin())->addKeyword();
|
|
}
|
|
}
|