예제 #1
0
 public function redirect($url, $terminate = true, $statusCode = 302)
 {
     if (Yii::app()->isMobileApp()) {
         $params = array();
         if (isset($_GET['x2ajax'])) {
             $params['x2ajax'] = $_GET['x2ajax'];
         }
         if (isset($_GET['isMobileApp'])) {
             $params['isMobileApp'] = $_GET['isMobileApp'];
         }
         $url = UrlUtil::mergeParams($url, $params);
     }
     return parent::redirect($url, $terminate, $statusCode);
 }