From 475534ceda598a3efe99a59eb0a24a16ddce9a29 Mon Sep 17 00:00:00 2001 From: Dalton Rooney Date: Tue, 22 Feb 2022 15:08:37 -0800 Subject: [PATCH] Fix Unknown Property error in exists() method --- src/Fractal.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Fractal.php b/src/Fractal.php index b7b540e..a7c6c1c 100644 --- a/src/Fractal.php +++ b/src/Fractal.php @@ -136,7 +136,7 @@ class FractalTemplateLoader implements \Twig_LoaderInterface, \Twig_ExistsLoader public function exists($name) { - return Craft::$app->templates->doesTemplateExist($name); + return Craft::$app->getView()->doesTemplateExist($name); } public function getSourceContext($name)