[SOLVED] Upgrade and connecting to Flexicontent API

More
8 years 9 months ago - 8 years 9 months ago #59926 by agata
Hello,
Is this article up to date?
www.flexicontent.org/documentation/faq/7...-3rd-party-code.html
I keep getting the following error
Code:
Fatal error: Class 'FlexicontentHelperRoute' not found in /var/sentora/hostdata/knowledgearc/public_html/dorisanddicky-staging_knowledgearc_net/templates/dorisanddicky/index.php on line 53

Line 53 is
Code:
$item_link = JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug));

Thanks,
Agata
Last edit: 8 years 9 months ago by agata.

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #59927 by ggppdk
Hello

obviously we needed to include the file with missing class:
Code:
require_once(JPATH_SITE.DS.'components'.DS.'com_content'.DS.'helpers'.DS.'route.php'); require_once(JPATH_SITE.DS.'components'.DS.'com_flexicontent'.DS.'helpers'.DS.'route.php');

i will update the FAQ article

you may also read:
How to generate FLEXIcontent SEF URLs in custom code


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
The following user(s) said Thank You: agata

Please Log in or Create an account to join the conversation.

More
8 years 9 months ago #59930 by agata
Did the trick, thanks!
Agata

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 1.224 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline