コード例 #1
0
 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])]);
     }
 }
コード例 #2
0
 public function init()
 {
     if (!isset($this['realUrl'])) {
         $this['realUrl'] = \PMVC\plug('url')->realUrl();
     }
     \PMVC\callPlugin('dispatcher', 'attach', array($this, \PMVC\Event\MAP_REQUEST));
 }
コード例 #3
0
 public function init()
 {
     \PMVC\callPlugin('dispatcher', 'attach', [$this, \PMVC\Event\B4_PROCESS_VIEW]);
 }
コード例 #4
0
ファイル: cli.php プロジェクト: pmvc-plugin/cli
 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();
 }
コード例 #5
0
ファイル: view_json.php プロジェクト: pmvc-plugin/view_json
 public function init()
 {
     $this['headers'] = ['Content-type: application/json'];
     \PMVC\callPlugin('dispatcher', 'attach', [$this, \PMVC\Event\MAP_REQUEST]);
 }
コード例 #6
0
ファイル: dimension.php プロジェクト: pmvc-plugin/dimension
 public function init()
 {
     \PMVC\callPlugin('dispatcher', 'attach', [$this, Event\MAP_REQUEST]);
     $this['dimensionQuery'] = [];
 }
コード例 #7
0
 public function init()
 {
     \PMVC\callPlugin('dispatcher', 'attach', array($this, \PMVC\Event\MAP_REQUEST));
 }