select(); foreach ($menu as $k => $v) { $menu[$k]['id']=$hashids->encode($v['id']); } S('menu_cache', $menu); $menu_cache=$menu; } $this->menu=$menu_cache; $this->type=$type; $this->display('Widget:menu'); } }