public function addNavProcess() { $nav = new NavigationModel(); if ($vo = $nav->create()) { //dump($vo);exit; $list = $nav->add(); if ($list !== false) { $this->success('数据保存成功!'); } else { $this->error('数据写入错误!'); } } else { $this->error($nav->getError()); } }