Files
firstPHP/src/app/core/BaseController.php
2024-04-17 17:30:00 +03:00

24 lines
479 B
PHP
Executable File

<?php
namespace itguild\forms\app\core;
use itguild\forms\core\cg_view\CgView;
class BaseController
{
protected \Twig\Environment $view;
protected CgView $cgView;
public function __construct()
{
$loader = new \Twig\Loader\FilesystemLoader(VIEW_PATH);
$this->view = new \Twig\Environment($loader, [
'cache' => VIEW_CACHE_PATH,
]);
$this->cgView = new CgView();
$this->cgView->viewPath = VIEW_PATH;
}
}