Created
September 6, 2018 12:40
-
-
Save CB9TOIIIA/4e4bace1919beccd58164709e849a77b to your computer and use it in GitHub Desktop.
front url joomla 3 from backend
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $app = JFactory::getApplication(); | |
$app = JApplicationCms::getInstance('site'); | |
$router = $app->getRouter(); | |
$route = $router->build((ContentHelperRoute::getArticleRoute($article->id, $article->catid))); | |
$fronturl = rtrim(JUri::root(), '/') . preg_replace('/administrator\//', '', $route, 1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment