diff --git a/controllers/DefaultController.php b/controllers/DefaultController.php index c24f916..2d3c69a 100644 --- a/controllers/DefaultController.php +++ b/controllers/DefaultController.php @@ -35,8 +35,7 @@ public function actionIndex() */ public function actionJson() { - \Yii::$app->response->format = Response::FORMAT_JSON; - echo $this->getContent(); + return $this->getContent(); }