JRoute in admin part Joomla

Чтобы JRoute заработал в админке:

$glink = 'index.php?option=com_goals&view=goal&id='.(int)$g->id;
		$app    = JApplication::getInstance('site');
		$router = &$app->getRouter();
		$uri = $router->build($glink);
		$glink = $uri->toString();
Scroll to Top
Ads: