Add the uppercase Twig to the template class.
This commit is contained in:
@@ -53,7 +53,7 @@ include "root.php";
|
|||||||
RainTPL::configure('cache_dir', realpath($this->cache_dir)."/");
|
RainTPL::configure('cache_dir', realpath($this->cache_dir)."/");
|
||||||
}
|
}
|
||||||
if ($this->engine === 'twig') {
|
if ($this->engine === 'twig') {
|
||||||
require_once "resources/templates/engine/twig/Autoloader.php";
|
require_once "resources/templates/engine/Twig/Autoloader.php";
|
||||||
Twig_Autoloader::register();
|
Twig_Autoloader::register();
|
||||||
$loader = new Twig_Loader_Filesystem($this->template_dir);
|
$loader = new Twig_Loader_Filesystem($this->template_dir);
|
||||||
$this->object = new Twig_Environment($loader);
|
$this->object = new Twig_Environment($loader);
|
||||||
|
|||||||
Reference in New Issue
Block a user