function init()
 {
     $this->setDefaultAlias(new CacheHeaderHelper());
     if (!empty($this[0]) || strlen($this[0])) {
         \PMVC\callPlugin(\PMVC\getOption(_ROUTER), 'processHeader', [call_user_func_array([$this, 'getCacheHeader'], $this[0])]);
     }
 }
 public function init()
 {
     if (!isset($this['realUrl'])) {
         $this['realUrl'] = \PMVC\plug('url')->realUrl();
     }
     \PMVC\callPlugin('dispatcher', 'attach', array($this, \PMVC\Event\MAP_REQUEST));
 }
 public function init()
 {
     \PMVC\callPlugin('dispatcher', 'attach', [$this, \PMVC\Event\B4_PROCESS_VIEW]);
 }
Example #4
0
 public function init()
 {
     \PMVC\callPlugin('dispatcher', 'attach', array($this, \PMVC\Event\MAP_REQUEST));
     \PMVC\callPlugin('dispatcher', 'attach', array($this, 'SetConfig'));
     $this->_color = new Console_Color2();
 }
Example #5
0
 public function init()
 {
     $this['headers'] = ['Content-type: application/json'];
     \PMVC\callPlugin('dispatcher', 'attach', [$this, \PMVC\Event\MAP_REQUEST]);
 }
Example #6
0
 public function init()
 {
     \PMVC\callPlugin('dispatcher', 'attach', [$this, Event\MAP_REQUEST]);
     $this['dimensionQuery'] = [];
 }
 public function init()
 {
     \PMVC\callPlugin('dispatcher', 'attach', array($this, \PMVC\Event\MAP_REQUEST));
 }