wangming1993 / issues

记录学习中的一些问题,体会与心得 https://wangming1993.github.io/issues
8 stars 4 forks source link

Yii2 response json #18

Open wangming1993 opened 8 years ago

wangming1993 commented 8 years ago
Yii::$app->response->format = yii\web\Response::FORMAT_JSON;

http://www.yiiframework.com/doc-2.0/yii-web-response.html