Documentation

GetMenuHtmlEx

string
CMenu::GetMenuHtmlEx()

The method emits the HTML code which displays the menu of the specified type. Unlike the method CMain::GetMenuHtml, the menu template is applied only once. Non-static method.

Note. The menu template used by this method must have the variable $sMenu initialised. This variable must contain the HTML code describing the whole menu.

Parameters

No parameters.

See Also

Examples of use

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


© «Bitrix24», 2001-2024
Up