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.
<? $lm = new CMenu("left"); $lm->Init($APPLICATION->GetCurDir(), true); $lm->template = "/bitrix/templates/demo/left.menu_template.php"; echo $lm->GetMenuHtmlEx(); ?>
© 2001-2005 Bitrix | Bitrix Site Manager - Content Management & Portal Solutions |