Инициализация

This commit is contained in:
Arsen Mirzaev Tatyano-Muradovich
2022-03-06 05:21:24 +10:00
commit ab752bf34f
39 changed files with 2648 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
<?php
declare(strict_types=1);
namespace mirzaev\surikovlib\controllers;
use mirzaev\surikovlib\controllers\core;
use mirzaev\surikovlib\models\accounts_model as accounts;
use Twig\Loader\FilesystemLoader;
use Twig\Environment as view;
/**
* Контроллер основной страницы
*
* @package mirzaev\surikovlib\controllers
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
*/
final class main_controller extends core
{
public function index(array $vars = []): ?string
{
// Проверка аутентифицированности
$vars['account'] = accounts::account($vars);
// Генерация представления
return $this->view->render(DIRECTORY_SEPARATOR . 'main' . DIRECTORY_SEPARATOR . 'index.html', $vars);
}
}