Skip to content

Commit

Permalink
Fix menu doc
Browse files Browse the repository at this point in the history
  • Loading branch information
loostro committed Jun 14, 2014
1 parent e933f88 commit df426ba
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Resources/doc/cookbook/menu.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ public function navbarMenu(FactoryInterface $factory, array $options)
// set id for root item, and class for nice twitter bootstrap style
$menu->setChildrenAttributes(array('id' => 'main_navigation', 'class' => 'nav'));

// add "navbar-nav" class for Twitter Bootstrap3 theme
//$menu->setChildrenAttributes(array('id' => 'main_navigation', 'class' => 'nav navbar-nav'));

// add links $menu
$this->addLinkURI($menu, 'Item1', 'http://www.google.com');
$this->addLinkRoute($menu, 'Item2', 'Your_RouteName');
Expand Down

0 comments on commit df426ba

Please sign in to comment.