Fixing render path

This commit is contained in:
Gregorio Chiko Putra 2017-09-04 14:33:03 +07:00
parent 7fa99eb6d8
commit 287bd4beab

View File

@ -8,7 +8,7 @@ class View
public static function render($template, $args = []) public static function render($template, $args = [])
{ {
if (self::$twig === null) { if (self::$twig === null) {
$loader = new \Twig_Loader_Filesystem('App/Views'); $loader = new \Twig_Loader_Filesystem('../App/Views');
$twig = new \Twig_Environment($loader); $twig = new \Twig_Environment($loader);
} }