references:joomla.framework:application:jmenu-getactivegetActive
Gets the active menu item. The active menu reflects the link of the current page, provided there’s a link to it in one of the visible menus. Syntaxobject The &getActive () ExamplesExample // get the Singleton instance $menu = &JMenu::getInstance(); // get the active menu item $active = &$menu->getActive(); echo '<a href="', $active->link , '">', $active->name ,'</a>'; Might create: <a href="index.php?option=com_content&view=article&id=25">
About Joomla!
</a>
|


