make tabs and submenu working

This commit is contained in:
2013-10-31 17:48:57 +01:00
parent 7d9eeaf15d
commit 75794d9323
6 changed files with 14 additions and 6 deletions

View File

@@ -29,11 +29,15 @@ class MenuComposer {
$routes = array();
foreach ($this->routeCollection->all() as $key => $route) {
if ($route['options']['menu'] === $menuId) {
$routes[$route['options']['order']] = $route;
if ($route->getOption('menu') === $menuId) {
$a['route'] = $key;
$a['label'] = $route->getOption('label');
$routes[$route->getOption('order')] = $a;
}
}
ksort($routes);
return $routes;
}