您能告诉我如何在Joomla 4中回显非sef URL吗?下面的代码和这里的其他答案只适用于Joomla 3:$router = JSite::getRouter();// get router
$query = $router->parse(JUri::getInstance()); //Get the real joomla query as an array - parse current
我有这个特定的问题,我必须检查网址,如果它的一部分是8个字符的哈希码,是保存在我的数据库,或它只是普通的网址,你想要导航。例如,如果我写url:i want to process it with my script in php file-www.example.com我使用的是joomla,它有很多不是真正的目录或文件的urls (我不能写下来),这就是为什么我不能在我的php文件中使用这个解决方案