Bitrix Site Manager

CMenu::GetMenuHtmlEx

string
CMenu::GetMenuHtmlEx()

The method GetMenuHtmlEx returns the HTML code that can be used to display menu. Unlike the method CMenu::GetMenuHtml the menu template will be included only once.

Note! 
The menu template used by this function must explicitly initialize the variable $sMenu, with the HTML code describing the whole menu.

Parameters


No parameters.

See Also

Example



<?
$lm = new CMenu("left");
$lm->Init($APPLICATION->GetCurDir(), true);
$lm->template = "/bitrix/templates/demo/left.menu_template.php";
echo $lm->GetMenuHtmlEx();
?>