Class 'FlexicontentHelperRoute' not found

More
6 years 1 month ago #72121 by lipatovroman
Hello!
I trying to use this code in my plugin
Code:
$app = JFactory::getApplication(); $menu = $app->getMenu()->getActive(); if ( !empty($menu->query['cid']) ) { $sef_link = JRoute::_( FlexicontentHelperRoute::getCategoryRoute($menu->query['cid']) ); $menu = $sef_link; //}

and got error Class 'FlexicontentHelperRoute' not found.

Why it happens?
Thanks.

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

More
6 years 1 month ago #72122 by ggppdk
You can add at the top of your script loading of the needed file:

Code:
require_once(JPATH_SITE . DIRECTORY_SEPARATOR. 'components' .DIRECTORY_SEPARATOR. 'com_flexicontent' .DIRECTORY_SEPARATOR. 'helpers' .DIRECTORY_SEPARATOR. 'route.php');

or
Code:
JLoader::register('FlexicontentHelperRoute', JPATH_SITE . '/components/com_flexicontent/helpers/route.php');


-- 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: lipatovroman

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

More
6 years 1 month ago #72123 by lipatovroman
It works!
Thanks.

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

More
6 years 1 month ago #72125 by lipatovroman
Your forum displays error:

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

More
6 years 1 month ago #72126 by ggppdk
Hello

it should go away when caching expires
is it still an issue ?
which URL ?


-- 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...

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

More
6 years 1 month ago - 6 years 1 month ago #72129 by lipatovroman

ggppdk wrote: Hello

it should go away when caching expires
is it still an issue ?
which URL ?


It's ok now.
It was on all forum pages.
Last edit: 6 years 1 month ago by ggppdk.

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.284 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