Yii 判断是不是post方式提交的数据 一、在controller里判断提交是不是通过post方式: 1 if(Yii::$app->request->isPost){ 2 return true; 3 }else{ 4 return false; 5 } isget 同样