Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Get the menu item object
- // Get the menu item object
- $app = JFactory::getApplication();
- $this->params = '';
- $menus = $app->getMenu();
- $menu = $menus->getActive();
- $this->params = $app->getParams();
- $this->assignRef('mparams', $this->params );
- //another way
- $app = JFactory::getApplication();
- $menu = $app->getMenu();
- $activemenu = ($menu->getActive()) ? $menu->getActive() : $menu->getDefault();
- $mparams = '';
- if (is_object($activemenu)) {
- $mparams = new JParameter($activemenu->params);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement