where($map)->order($order)->select(); foreach ($list as &$v){ $v['url'] = $v['url'] ? U("{$v['url']}") : $v['url']; } return (array)$list; } //获取以菜单类型为键值的菜单数组 public function getMenuListGroupByType(){ $menu_list = $this->getMenuList(); $r = array(); foreach ($menu_list as $v){ $r[$v['type']][] = array('id'=>$v['id'], 'title' => $v['title']); } return $r; } public function getMenuTitle($menu_id){ $ent = $this->getOne($menu_id); return $ent['title']; } }