Created
March 19, 2012 11:43
-
-
Save sebbdk/2108758 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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