From 77b5331e6c952e8c2466fe01a63d560c4ed69b78 Mon Sep 17 00:00:00 2001 From: Guillermo Dev Date: Sun, 14 Oct 2018 14:36:05 +0200 Subject: [PATCH] corrected directory --- src/Webservice/Formatter/Html.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Webservice/Formatter/Html.php b/src/Webservice/Formatter/Html.php index 4396cad..0cb213a 100644 --- a/src/Webservice/Formatter/Html.php +++ b/src/Webservice/Formatter/Html.php @@ -148,7 +148,7 @@ class Html extends Formatter { } public static function template(array $context = array(), $template = 'layout') { - $html = file_get_contents(sprintf('templates/%s.html', $template)); + $html = file_get_contents(realpath(__DIR__ . '/../../../') . sprintf('/templates/%s.html', $template)); $patterns = array_map(function($p) { return "{{ $p }}"; }, array_keys($context)); return str_replace($patterns, array_values($context), $html);