This commit is contained in:
kali
2024-04-17 17:30:00 +03:00
parent 05cbb7ef43
commit 13dbef5b4f
14 changed files with 212 additions and 39 deletions

View File

@ -2,9 +2,13 @@
namespace itguild\forms\app\core;
use itguild\forms\core\cg_view\CgView;
class BaseController
{
protected $view;
protected \Twig\Environment $view;
protected CgView $cgView;
public function __construct()
{
@ -12,6 +16,9 @@ class BaseController
$this->view = new \Twig\Environment($loader, [
'cache' => VIEW_CACHE_PATH,
]);
$this->cgView = new CgView();
$this->cgView->viewPath = VIEW_PATH;
}
}