Closed johnitvn closed 9 years ago
$request = Yii::$app->request;
if($request->isAjax){ ..... }else{ return $this->redirect(['index']); }
$request = Yii::$app->request;
if($request->isAjax){ .....
}else{ return $this->redirect(['index']); }