alecthorne Posted October 26, 2015 Share Posted October 26, 2015 Just to start, I know very little about PHP. I am using Joomla 3.4.1 in combination with ZOO, and would like to extract the itemid (in this case 216) from a typical URL as that shown below: http://www.linkindustry.com/index.php?option=com_zoo&task=item&item_id=241&Itemid=216 I have tried using the suggestion below, found within another PHP question, however it sadly does not work: $db = JFactory::getDbo();$articleid = JRequest::getInt('id');echo $articleid; Can someone point me in the right direction. Many thanks, Alec Quote Link to comment https://forums.phpfreaks.com/topic/298846-extract-itemid-from-a-zoo-item-url/ Share on other sites More sharing options...
QuickOldCar Posted October 26, 2015 Share Posted October 26, 2015 It's not id, it's Itemid in the url Quote Link to comment https://forums.phpfreaks.com/topic/298846-extract-itemid-from-a-zoo-item-url/#findComment-1524399 Share on other sites More sharing options...
alecthorne Posted October 26, 2015 Author Share Posted October 26, 2015 Have just seen the error and it works a treat. Thanks for pointing that out. Alec Quote Link to comment https://forums.phpfreaks.com/topic/298846-extract-itemid-from-a-zoo-item-url/#findComment-1524404 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.