public function actionIndex() { if (!CommonFunc::isMobile()) { throw new THttpException('', 404); } $mobile_type = CommonFunc::isAndroid() ? 'android' : 'ios'; $this->render('share', array('mobile_type' => $mobile_type)); }