private function _departmentAdd() { if ($this->_isPost()) { $addArr = array('name' => $_POST['name'], 'description' => $_POST['description'], 'date_created' => CURRENT_TIME, 'date_updated' => CURRENT_TIME); if ($this->_modelDepartment->add($addArr)) { $this->_modelDepartment->createCache(); $this->_utilMsg->showMsg('部门增加成功', 1, Tools::url(CONTROL, 'Department')); } else { $this->_utilMsg->showMsg('部门增加失败', -2); } } else { $this->_utilMsg->createNavBar(); $this->_view->set_tpl(array('body' => 'User/DepartmentAdd.html')); $this->_view->display(); } }