Skip to content

Instantly share code, notes, and snippets.

@sebbdk
Created March 19, 2012 11:43
Show Gist options
  • Save sebbdk/2108758 to your computer and use it in GitHub Desktop.
Save sebbdk/2108758 to your computer and use it in GitHub Desktop.
$menuItems = Configure::read('Backend.menu');
if(!empty($menuItems)){
echo '<ul class="nav nav-pills">';
foreach($menuItems as $name => $link){
echo '<li class="active">';
echo $this->Html->link($name, $link);
echo '</li>';
}
echo '</ul><hr />';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment