Exemplo n.º 1
0
 /**
  * 绑定当前域名到api模块
  */
 protected function initBindModule()
 {
     $this->_front->getRouter()->bindDomain('api', 'webapi.' . $this->_config->getDomain());
 }
Exemplo n.º 2
0
 /**
  * 关闭已绑定域名的模块
  */
 protected function initCloseModule()
 {
     $this->_front->getRouter()->closeModule('api')->closeModule('front');
 }