Create url with JRoute from article ID - Joomla! Forum - community, help and support
hello,
i`m trying prep url jroute article id, keep recieving error. have tried 2 ways, both own error.
which solution best , how fix error?
i`m trying prep url jroute article id, keep recieving error. have tried 2 ways, both own error.
code: select all
$articleurl = jroute::_(contenthelperroute::getarticleroute($contentid));fatal error: uncaught exception 'exception' message 'application instantiation error' in /home/domain/domains/domain.com/public_html/libraries/joomla/factory.php:101 stack trace: #0 /home/domain/domains/domain.com/public_html/components/com_content/helpers/route.php(137): jfactory::getapplication() #1 /home/domain/domains/domain.com/public_html/components/com_content/helpers/route.php(62): contenthelperroute::_finditem(array) #2 /home/domain/domains/domain.com/public_html/myownfile.php(174): contenthelperroute::getarticleroute('160') #3 /home/domain/domains/domain.com/public_html/myownfile.php(92): myownfunction('dit de titel', 'dit de tekst', null, '2') #4 {main} thrown in /home/domain/domains/domain.com/public_html/libraries/joomla/factory.php on line 101
code: select all
$articleurl = jroute::_("http://www.domain.com/index.php?option=com_content&view=article&id=".$contentid);fatal error: uncaught exception 'exception' message 'application instantiation error' in /home/domain/domains/domain.com/public_html/libraries/joomla/factory.php:101 stack trace: #0 /home/domain/domains/domain.com/public_html/libraries/joomla/application/route.php(48): jfactory::getapplication() #1 /home/domain/domains/domain.com/public_html/fmyownfile.php(174): jroute::_('http://www.doma...') #2 /home/domain/domains/domain.com/public_html/myownfile.php(92): myownfunction('dit de titel', 'dit de tekst', null, '2') #3 {main} thrown in /home/domain/domains/domain.com/public_html/libraries/joomla/factory.php on line 101
which solution best , how fix error?
please can point me in right direction?
Comments
Post a Comment