/** * 绑定当前域名到api模块 */ protected function initBindModule() { $this->_front->getRouter()->bindDomain('api', 'webapi.' . $this->_config->getDomain()); }
/** * 向View中添加相关的资料 */ protected function initAddDataToView() { //当前配置文件中的主域名 XF_View::getInstance()->assign('domain', $this->_config->getDomain()); }