public function __construct($controller) { $this->controller = $controller; $this->smarty = ResourceFactory::getSmartyInstance(); }