forked from mirzaev/site-tordv-calculator
26 lines
623 B
PHP
26 lines
623 B
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
namespace mirzaev\calculator\controllers;
|
|
|
|
use mirzaev\calculator\controllers\core;
|
|
|
|
use Twig\Loader\FilesystemLoader;
|
|
use Twig\Environment as view;
|
|
|
|
/**
|
|
* Контроллер основной страницы
|
|
*
|
|
* @package mirzaev\calculator\controllers
|
|
* @author Arsen Mirzaev Tatyano-Muradovich <arsen@mirzaev.sexy>
|
|
*/
|
|
final class main_controller extends core
|
|
{
|
|
public function index(array $params = [])
|
|
{
|
|
// Генерация представления
|
|
return $this->view->render(DIRECTORY_SEPARATOR . 'main' . DIRECTORY_SEPARATOR . 'index.html');
|
|
}
|
|
}
|