From a90f71d4eafaeeb3d4fa189865d8f5eab4423dc9 Mon Sep 17 00:00:00 2001 From: VeeeneX Date: Wed, 12 Aug 2015 15:28:04 +0200 Subject: [PATCH] Extension in construct --- src/MVC/View.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/MVC/View.php b/src/MVC/View.php index b52a3fa..c766ece 100644 --- a/src/MVC/View.php +++ b/src/MVC/View.php @@ -7,12 +7,13 @@ class View protected $data = []; protected $template = "master"; protected $extension; - + private $Engine; - public function __construct($Engine) + public function __construct($Engine, $extension = null) { $this->Engine = $Engine; + $this->extension = $extension; } public function __get($key)