如何使用yii2框架检测表单是否通过POST方法提交?
- 内容介绍
- 文章标签
- 相关推荐
本文共计94个文字,预计阅读时间需要1分钟。
简单改写伪原创以下开头内容,不要试图图解问题,不要啰嗦,不超过100字,直接输出结果:
判断post提交
if(Yii::$app->request->isPost){ return true; }else{ return false; }
判断get提交
if(Yii::$app->request->isGet){ return true; }else{ return false; }
推荐:《YII教程》
本文共计94个文字,预计阅读时间需要1分钟。
简单改写伪原创以下开头内容,不要试图图解问题,不要啰嗦,不超过100字,直接输出结果:
判断post提交
if(Yii::$app->request->isPost){ return true; }else{ return false; }
判断get提交
if(Yii::$app->request->isGet){ return true; }else{ return false; }
推荐:《YII教程》

