Fixing render path
This commit is contained in:
@@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user