/** * Init * * @param ViewInterface $view * @param DI $dependencyInjector */ public function __construct($view, $dependencyInjector = null) { parent::__construct($view, $dependencyInjector); $this->jsonHelper = new JsonHelper(); }
/** * Php constructor. * @param View $view * @param \Phalcon\Di $di */ public function __construct($view, $di) { parent::__construct($view, $di); $this->_debug = $view::getConfig('debug'); }