$parent
$parent :
The original classic menu generator.
This is kept for backwards compatibility. The new RouterMenu is the recommended replacement for this library (but only works if your app is using the Nano Router plugin, whereas this requires no specific routing system at all.)
buildMenu(Array $menu, Array $opts = array()) : \Nano4\Utils\HTML\SimpleXMLElement
Build a menu.
Given some information and a menu definition, this will generate an HTML menu using a specific layout.
| Array | $menu | The menu definition. |
| Array | $opts | Options to change the behavior. |
An HTML structure representing the menu.