From 098fe4130a78a0ccb489fd63d3284367b06655a0 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 18 May 2017 19:54:53 +0200 Subject: [PATCH] Allow to pass data to renderer --- Views/ViewAbstract.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Views/ViewAbstract.php b/Views/ViewAbstract.php index 9c3a8c3e2..ffba85390 100644 --- a/Views/ViewAbstract.php +++ b/Views/ViewAbstract.php @@ -245,7 +245,7 @@ abstract class ViewAbstract implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function render() : string + public function render(...$data) : string { $path = __DIR__ . '/../..' . $this->template . '.tpl.php';