method to show submenus

This commit is contained in:
Evan Prodromou 2011-03-01 06:29:24 -05:00
parent a64c6c5015
commit d8cbc20a79

View File

@ -81,4 +81,12 @@ class Menu extends Widget
{
return sprintf('nav_%s', $actionName);
}
function submenu($label, $menu)
{
$this->action->elementStart('li');
$this->action->text($label);
$menu->show();
$this->action->elementEnd('li');
}
}