public function actionRecordSave() { $model = new Razz(); \Yii::$app->response->format = \yii\web\Response::FORMAT_JSON; return $model->saveVideo(); }