判断post提交
if(Yii::$app->request->isPost){ return true; }else{ return false; }
推荐教程:yii框架
判断get提交
if(Yii::$app->request->isGet){ return true;}else{ return false; }
更多编程相关内容,请关注php中文网编程入门栏目!
判断post提交
if(Yii::$app->request->isPost){ return true; }else{ return false; }
推荐教程:yii框架
判断get提交
if(Yii::$app->request->isGet){ return true;}else{ return false; }
更多编程相关内容,请关注php中文网编程入门栏目!
文章来源:智云一二三科技
文章标题:yii2如何判断是否是post提交表单
文章地址:https://www.zhihuclub.com/28167.shtml