joomla2.5 - How to get full url of a article by it's ID in joomla? -


i have article id, how can valid full url of article? article associated menu might not know, there easy way in php url? using joomla 3.2 tried following already.

$article = controllerlegacy::getinstance('content')->getmodel('article')->getitem($article‌​id);  jroute::_(contenthelperroute::getarticleroute($articleid,$article->catid)) 

you can use

 $article = jcontrollerlegacy::getinstance('content')             ->getmodel('article')->getitem($articleid);    $url =  jroute::_(contenthelperroute::getarticleroute($articleid,                        $article->catid,                        $article->language)) 

Comments

Popular posts from this blog

how to proxy from https to http with lighttpd -

android - Automated my builds -

python - Flask migration error -