public function init() { if (zmf::config('mobile')) { if (tools::checkmobile($this->platform)) { Yii::app()->theme = 'mobile'; $this->isMobile = 'yes'; } } }
public function init() { //zh_tw\en_us Yii::app()->language = 'zh_cn'; if (zmf::config('mobile')) { if (tools::checkmobile($this->platform)) { $this->isMobile = 'yes'; } } }
public function init() { Yii::app()->language = 'zh_cn'; if (zmf::config('mobile')) { if (tools::checkmobile($this->platform)) { Yii::app()->theme = 'frozen'; $this->isMobile = 'yes'; $this->layout = '//layouts/mobile'; $this->currentModule = 'frozen'; } } if (zmf::uid()) { $this->uid = zmf::uid(); $userInfo = Users::getUserInfo($this->uid); $this->truename = $userInfo['truename']; $this->userInfo = $userInfo; } self::_referer(); }