File tree
Expand file treeCollapse file tree1 file changed
+2
-2
lines changed Expand file treeCollapse file tree1 file changed
+2
-2
lines changed Original file line number | Diff line number | Diff line change |
---|
@@ -22,7 +22,7 @@ public static function render($view, $args = [])
|
22 | 22 | {
|
23 | 23 | extract($args, EXTR_SKIP);
|
24 | 24 |
|
25 |
| -$file = "../App/Views/$view"; // relative to Core directory |
| 25 | +$file = dirname(__DIR__) . "/App/Views/$view"); // relative to Core directory |
26 | 26 |
|
27 | 27 | if (is_readable($file)) {
|
28 | 28 | require $file;
|
@@ -44,7 +44,7 @@ public static function renderTemplate($template, $args = [])
|
44 | 44 | static $twig = null;
|
45 | 45 |
|
46 | 46 | if ($twig === null) {
|
47 |
| -$loader = new \Twig_Loader_Filesystem('../App/Views'); |
| 47 | +$loader = new \Twig_Loader_Filesystem(dirname(__DIR__) . '/App/Views'); |
48 | 48 | $twig = new \Twig_Environment($loader);
|
49 | 49 | }
|
50 | 50 |
|
|
You can’t perform that action at this time.
0 commit comments