2018年9月12日

yii2获取用户get,post参数

摘要: Get: Yii::$app->request->get($key, $default):第一个参数($key)为用户get请求的key,第一个参数选填;第二个参数($default)是默认值,第二个参数选填; 不填参数得到的是get数据的数组。 Yii::$app->request->queryP 阅读全文

posted @ 2018-09-12 14:04 刷哥 阅读(4506) 评论(0) 推荐(1)

访问本地虚拟主机出现 Forbidden。没有权限访问

摘要: git pull 更新完本地代码之后,打开虚拟主机,hou.com (环境在phpstudy已经配置好), 发现不能访问服务器,本地配置的虚拟主机的路径也没问题,可能出现这个问题: 更新完本地代码,原先的项目配置被覆盖掉了,又或者是还原了,需要重新配置。这样,在phpstrom(我用的的php代码编 阅读全文

posted @ 2018-09-12 10:37 刷哥 阅读(347) 评论(0) 推荐(0)

正则匹配 

摘要: $postData['QuanTopic']['content'] = strip_tags($postData['QuanTopic']['content']); //去除字符串中的html的标签$postData['QuanTopic']['content'] = preg_replace('/ 阅读全文

posted @ 2018-09-12 10:03 刷哥 阅读(2558) 评论(0) 推荐(0)

yii asArray()

摘要: $res = UserWechat::find()->andFilterWhere(['token' => $token])->one();$res->save() 如果此处写为 $res = UserWechat::find()->andFilterWhere(['token' => $token 阅读全文

posted @ 2018-09-12 09:54 刷哥 阅读(330) 评论(0) 推荐(0)

git 图

摘要: 阅读全文

posted @ 2018-09-12 09:44 刷哥 阅读(131) 评论(0) 推荐(0)

导航