我试图在获取地址http://domainname.com?mobile=1时在 Joomla 插件中获取 url 参数。我正在使用代码:
$app = JFactory::getApplication();
$jinput = $app->input;
$var=$jinput->get('mobile', 'nothing', 'string');
但我得到 $var 等于“无”。
如何在 Joomla 插件中获取 url 参数?
我试图在获取地址http://domainname.com?mobile=1时在 Joomla 插件中获取 url 参数。我正在使用代码:
$app = JFactory::getApplication();
$jinput = $app->input;
$var=$jinput->get('mobile', 'nothing', 'string');
但我得到 $var 等于“无”。
如何在 Joomla 插件中获取 url 参数?