store_id = get_store_id(); $res = $form->saasConf(); $res['$err'] = KeloopForm::apiErrs(); return $this->asJson($res); } public function actionSaasConfSave(){ $conf = input_params('conf'); $form = new KeloopForm(); $form->store_id = get_store_id(); return $this->asJson($form->saasConfSave($conf)); } }