I have the code: $uri = JUri::getInstance(); $router = JRouter::getInstance('site'); $vars = $router->parse($uri);
I'm wanting to parse the uri out at the module's backend (Just the module I'm writing myself.). But when I installed the module and clung to the module for editing, it led me to the blank page, and in the address bar I saw a lot of /index.php/en/index.php/en...
it popped up a lot. That is I test with 3.9.x. With 3.8.x it says "Allow memory .....".
I'm using php 7.2.12.
$router = JRouter::getInstance('site');
with$router = JRouter::getInstance('administrator');
and the module is now running normally. Are there two different ways? Thank yousite
andadministrator
are the two halves of the Joomla beast.administrator
refers to the "backend".