From 038c794c8fb609ef8ef7022504cbea4c940c97cc Mon Sep 17 00:00:00 2001 From: ulises-jeremias Date: Mon, 2 Oct 2017 18:09:54 -0300 Subject: [PATCH] Templates --- Mbh/Controller.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Mbh/Controller.php b/Mbh/Controller.php index 26bef44..8e49ae9 100644 --- a/Mbh/Controller.php +++ b/Mbh/Controller.php @@ -10,8 +10,6 @@ namespace Mbh; -use Twig_Environment; -use Twig_Loader_Filesystem; use Mbh\Helpers\Inflect; use Mbh\Interfaces\ControllerInterface; @@ -20,7 +18,7 @@ */ class Controller { - protected static $model; + protected $model; protected $template; @@ -35,8 +33,8 @@ function __construct($app = null) )); $this->model = !class_exists($modelName) ?: $modelName; + $this->app = $app; - $this->template = new Twig_Environment(new Twig_Loader_Filesystem('./web/templates/')); } public static function create()