public function saveAction() { //获取post数据 $data = I('post.'); $menuModel = new MenuModel(); $state = $menuModel->saveMenu($data); if ($state == "success") { $this->success('新增成功', U('index', I('get.'))); } }