From 9572d270435885c0e5f01c8ca09cb6f9ac7041de Mon Sep 17 00:00:00 2001 From: Abel Hoogeveen Date: Sat, 13 Jun 2020 11:54:44 +0200 Subject: [PATCH] Allowed the view to load other views and other controllers. --- src/FuzeWorks/View.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/FuzeWorks/View.php b/src/FuzeWorks/View.php index fa86c8c..268d4e8 100644 --- a/src/FuzeWorks/View.php +++ b/src/FuzeWorks/View.php @@ -48,6 +48,16 @@ namespace FuzeWorks; abstract class View { + /** + * @var Controllers + */ + protected $controllers; + + /** + * @var Views + */ + protected $views; + /** * @var Plugins */ @@ -87,6 +97,8 @@ abstract class View public function __construct() { + $this->controllers = Factory::getInstance()->controllers; + $this->views = Factory::getInstance()->views; $this->plugins = Factory::getInstance()->plugins; $this->libraries = Factory::getInstance()->libraries; $this->helpers = Factory::getInstance()->helpers;