Class 'JModel' not found in ...

More
13 years 11 months ago #11984 by blocka
I have a custom module that displays articles from a specific category into a position in my site (for advertisers)

I've installed JCal Pro.

When I browse my site, all pages load Flexicontent just fine ... unless I browse to JCAL pro pages -- then I get the error:

Class 'JModel' not found in ...

Can anyone suggest why I get this error, and how to fix it?


The module's code is:
Code:
<?php // no direct access defined( '_JEXEC' ) or die( 'Restricted access' ); require_once('helpers'.DS.'helper.php'); $flexiParams = &JComponentHelper::getParams( 'com_flexicontent' ); $item = JHelperAdvertisement::getItem( $flexiParams ); if( $item !== false ) { if( JHelperAdvertisement::showUserAdvertisement( $item->created_by, $flexiParams ) ) { if ( $params->get('showtitles', 0) ) : ?> <?php if ( $item->parameters->get('show_title') ) : echo '<p><h2 class="contentheading">' . $item->title.'</h2></p>'; else : ''; endif; ?> <?php endif; echo "<p>"; echo $item->introtext; echo "</p>"; if ( $item->fulltext != '' && $flexiParams->get('show_readmore', 1) ) : ?> <span class="readmore"> <a href="<?php echo JRoute::_(FlexicontentHelperRoute::getItemRoute($item->slug, $item->categoryslug)); ?>" class="readon"> <?php if ($item->parameters->get('readmore')) : echo ' ' . $item->parameters->get('readmore'); else : echo ' ' . JText::sprintf('FLEXI_READ_MORE', $item->title); endif; ?> </span> <?php endif; } }

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

More
13 years 11 months ago #12136 by micker
hello i think it's a develloper question

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

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