500 - Unable to load router
I am using the method onAfterInitialise
Code: Select all
function onAfterInitialise() {
$router = &JApplication::getRouter();
}
Moderators: tjay, seadap, Rogue4ngel, matthewhayashida
Code: Select all
function onAfterInitialise() {
$router = &JApplication::getRouter();
}
Code: Select all
$logentry = array();
$log = &JLog::getInstance();
global $mainframe;
$uri = &JURI::getInstance();
$router = &$mainframe->getRouter();
$logentry["comment"] = "URI to string {$router->parse($uri)}";
foreach ($router->parse($uri) as $key => $value):
$logentry["comment"] = "Key {$key} : Value {$value}";
$log->addEntry($logentry);
endforeach;
$log->addEntry($logentry);