[eluser]Miha Iancu[/eluser]
I have a Codeigniter application and I am trying to import for the Home page of the website some posts from a Wordpress blog installed on the server as well. I've tried to do this directly in my view:
<?php
// Include Wordpress
define('WP_USE_THEMES', false);
require($_SERVER['DOCUMENT_ROOT'].'/blog/wp-blog-header.php');
query_posts('showposts=1&cat=3');
?>
I tried this code outside the Codeigniter app and it works but for the app it outputs this:
"Fatal error: Call to undefined method stdClass:
et_prefix() ...."
Can anybody help me, please? Any piece of advice will be very much appreciate.
Thanks!