Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
ignatenkovnikita committed Apr 2, 2018
1 parent baf3fc5 commit f9b58ba
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions controllers/DefaultController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ public function actionIndex()
*/
public function actionJson()
{
\Yii::$app->response->format = Response::FORMAT_JSON;
echo $this->getContent();
return $this->getContent();
}


Expand Down

0 comments on commit f9b58ba

Please sign in to comment.