0
我想在獲得地址http://domainname.com?mobile=1的同時在Joomla插件中獲取url參數。我正在使用代碼:如何獲得Joomla插件的URL參數?
$app = JFactory::getApplication();
$jinput = $app->input;
$var=$jinput->get('mobile', 'nothing', 'string');
但我得到$ var等於「nothing」。
如何獲得Joomla插件的URL參數?