Posted By

kevincam on 05/26/12


Tagged

menu find joomla itemid sef


Versions (?)

How to get menu Itemid in your own components


 / Published in: PHP
 

  1. $url = 'index.php?option=[[option]]&view=[[view]]';
  2. $menu = $app->getMenu();
  3. $menuItem = $menu->getItems( 'link', $url, true );
  4. $Itemid = $menuItem->id;

Report this snippet  

You need to login to post a comment.