public function actionIndex(array $masters = []) { Yii::$app->response->format = Response::FORMAT_JSON; return \app\components\Helper::getMasters($masters); }