@@ -55,6 +55,7 @@ class IndexController extends Controller
}
public function actionContentpage(){
$pages=ContentPage::find()->asArray()->all();
+ \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
return [
'code' => 200,
'data'=>$pages,