/** * 删除菜单 */ public function menuAction() { $id = $this->isG('id', $GLOBALS['_LANG']['COMMON']['DELETE_ID']); $result = \Model\Model::deleteFromModelId('menu', $id); if (empty($result)) { $this->error($GLOBALS['_LANG']['COMMON']['DELETE_ERROR']); } else { $this->success($GLOBALS['_LANG']['COMMON']['DELETE_SUCCESS']); } }