From f9b58ba90a43b6d5b2135fc8e043907793ff4bdf Mon Sep 17 00:00:00 2001 From: Ignatenkov Nikita Date: Mon, 2 Apr 2018 16:39:18 +0300 Subject: [PATCH] fix error --- controllers/DefaultController.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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(); }