Closed johnluxor closed 10 years ago
Hi sir, I got the same error, and I just add the code like your suggestion. But I still got the same. Can you help me, may be you can check my code. Because I'm not sure I've put the code in the right place.
This is my code https://github.com/kepingatp/pstk/blob/master/ToggleAction.php Thanks.
try to use this before return \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
Last commit has broken code in Toggle Action class. If model was saved successfully then will not set response format to JSON and I got error
yii\base\InvalidParamException with message "Response content must not be an array."