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