您好,欢迎访问一九零五行业门户网

RESTful的PUT请求如何才能在控制器获取到数据,并为纯数组的形式?

restful的put请求如何才能在控制器获取到数据,并为纯数组的形式?
回复内容: restful的put请求如何才能在控制器获取到数据,并为纯数组的形式?
yii::$app->request->bodyparams;
file_get_contents(php://input);
一般都是用`post` 请求来模拟`put` 和`delete` 请求
参数加 http_build_query($params)
curl_setopt($ch, curlopt_postfields, http_build_query($params));
其它类似信息

推荐信息