public function insert() { $model = new AttrModel(); if (false === $model->create($_POST, Model::MODEL_INSERT)) { $this->error($model->getError()); } if (false === $model->add()) { $this->error($model->getError()); } $this->success('新建成功', U(CONTROLLER_NAME . '/lists')); }