Skip to content

Commit

Permalink
Templates
Browse files Browse the repository at this point in the history
  • Loading branch information
ulises-jeremias committed Oct 2, 2017
1 parent ba954aa commit 038c794
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Mbh/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@

namespace Mbh;

use Twig_Environment;
use Twig_Loader_Filesystem;
use Mbh\Helpers\Inflect;
use Mbh\Interfaces\ControllerInterface;

Expand All @@ -20,7 +18,7 @@
*/
class Controller
{
protected static $model;
protected $model;

protected $template;

Expand All @@ -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()
Expand Down

0 comments on commit 038c794

Please sign in to comment.