attributes = get_params(); return $this->asJson($form->settingIndex()); } //修改 public function actionEdit() { $form = new SettingForm(); $form->attributes = post_params(); return $this->asJson($form->settingEdit()); } }