I am trying to get the current itemid of an especific menu which calls a custom component.
I had a custom component called on the menu with the url
Inside of the site model of my component I have this in my constructor:
$jinput = JFactory::getApplication('site')->input; $uriQuery=$jinput->getArray(); //var_dump($uriQuery); $itemid=$uriQuery['Itemid']; echo $itemid; // it gives me a random id = 234
If I create another menu with url
/otherthing and call the same custom component, with the same model, the
echo $itemid returns a differen random id = 132.
So my question is: Where does the Id comes from?. It comes from the url?. From the menú that I create?.