bd
This commit is contained in:
17
src/app/core/BaseController.php
Normal file
17
src/app/core/BaseController.php
Normal file
@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
namespace itguild\forms\app\core;
|
||||
|
||||
class BaseController
|
||||
{
|
||||
protected $view;
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
$loader = new \Twig\Loader\FilesystemLoader(VIEW_PATH);
|
||||
$this->view = new \Twig\Environment($loader, [
|
||||
'cache' => VIEW_CACHE_PATH,
|
||||
]);
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user