Add the uppercase Twig to the template class.
This commit is contained in:
parent
75aa1d9e92
commit
e770d141a2
|
|
@ -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);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue