From 47041461c3f684f70ce0dda426228269812f9d7a Mon Sep 17 00:00:00 2001 From: Roberto Lombi Date: Fri, 12 Dec 2014 18:50:39 +0100 Subject: [PATCH] Twig_Template does not accept an object for render method Twig_Template render method accepts arrays not objects, the all() method of Slim\Helper\Set seems to work for this issue. --- Views/Twig.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/Twig.php b/Views/Twig.php index c2feb41..12a2e17 100644 --- a/Views/Twig.php +++ b/Views/Twig.php @@ -96,7 +96,7 @@ public function render($template) $env = $this->getEnvironment(); $template = $env->loadTemplate($template); - return $template->render($this->data); + return $template->render($this->data->all()); } /**