method to show submenus
This commit is contained in:
parent
a64c6c5015
commit
d8cbc20a79
@ -81,4 +81,12 @@ class Menu extends Widget
|
|||||||
{
|
{
|
||||||
return sprintf('nav_%s', $actionName);
|
return sprintf('nav_%s', $actionName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function submenu($label, $menu)
|
||||||
|
{
|
||||||
|
$this->action->elementStart('li');
|
||||||
|
$this->action->text($label);
|
||||||
|
$menu->show();
|
||||||
|
$this->action->elementEnd('li');
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user