public function actionGet_permissions() { \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON; return Auth_Item::find()->where(['owner_user_id' => NULL])->all(); }
就是在要输出的代码之前 加上
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
博客提及在输出代码前需添加转载信息,转载自https://www.cnblogs.com/baker95935/p/10949141.html ,涉及PHP和大数据相关。
436

被折叠的 条评论
为什么被折叠?



