attributes = get_params(); $this->asJson($form->storeForbiddenDirectory()); } public function actionSave() { $form = new StoreForbiddenDirectoryForm(); $form->attributes = post_params(); $this->asJson($form->save()); } public function actionDel() { $form = new StoreForbiddenDirectoryForm(); $form->attributes = get_params(); $this->asJson($form->del()); } }