1283 Posts
Bucklash
6 years ago
Topic

Hi Klas

I am hoping to use JCckContent::getInstance, but in the AfterStore I get no joy.

The only clues I have found are in this link Error in function load( $identifier ) #459

So I have a content type, it is an article with an article id of 731.

In my site form, using afterstore:

$content = JCckContentJoomla_Article::getInstance( '731' ); 

$someProperty = $content->getProperty( 'some_property' );

I get no joy from this.

Any clues?

Thanks

Get a Book for SEBLOD
4229 Posts
Kadministrator
6 years ago
0
Level 1

Probably just a problem with classes loading, try JCckContent::getInstance( array('joomla_article', 731) ) - base class then loads appropriate subclass. Or you can add it manually by using include_once.

Get a VIP membership