Allowed the view to load other views and other controllers.
This commit is contained in:
parent
d6fcf1c750
commit
9572d27043
|
@ -48,6 +48,16 @@ namespace FuzeWorks;
|
||||||
abstract class View
|
abstract class View
|
||||||
{
|
{
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Controllers
|
||||||
|
*/
|
||||||
|
protected $controllers;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @var Views
|
||||||
|
*/
|
||||||
|
protected $views;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @var Plugins
|
* @var Plugins
|
||||||
*/
|
*/
|
||||||
|
@ -87,6 +97,8 @@ abstract class View
|
||||||
|
|
||||||
public function __construct()
|
public function __construct()
|
||||||
{
|
{
|
||||||
|
$this->controllers = Factory::getInstance()->controllers;
|
||||||
|
$this->views = Factory::getInstance()->views;
|
||||||
$this->plugins = Factory::getInstance()->plugins;
|
$this->plugins = Factory::getInstance()->plugins;
|
||||||
$this->libraries = Factory::getInstance()->libraries;
|
$this->libraries = Factory::getInstance()->libraries;
|
||||||
$this->helpers = Factory::getInstance()->helpers;
|
$this->helpers = Factory::getInstance()->helpers;
|
||||||
|
|
Loading…
Reference in New Issue