Ejemplo n.º 1
0
Archivo: T.php Proyecto: ph7pal/mei
 public function init()
 {
     if (zmf::config('mobile')) {
         if (tools::checkmobile($this->platform)) {
             Yii::app()->theme = 'mobile';
             $this->isMobile = 'yes';
         }
     }
 }
Ejemplo n.º 2
0
Archivo: T.php Proyecto: ph7pal/naodong
 public function init()
 {
     //zh_tw\en_us
     Yii::app()->language = 'zh_cn';
     if (zmf::config('mobile')) {
         if (tools::checkmobile($this->platform)) {
             $this->isMobile = 'yes';
         }
     }
 }
Ejemplo n.º 3
0
Archivo: T.php Proyecto: ph7pal/wedding
 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();
 }