bd 8.0
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user