• 0

Zend Framework + Wordpress


Question

Ok, so I have made a site using Zend Framework, works great really chuffed.

I also have a wordpress blog.

On my old site, I integrated a wordpress box onto the front page of the site, showing the latest posts.

<? require 'blog/wp-blog-header.php'; 
// call wordpress show_posts function.......
?>

now, i tried adding this into the indexAction() of my IndexController, and i receive the following error:

Fatal error: Call to a member function set_prefix() on a non-object in /SITE-PATH-REMOVED/public/blog/wp-settings.php on line 255

this relates to this code:

250:  require_wp_db();
251:
252:  if ( !empty($wpdb->error) )
253:	   dead_db();
254: 
255: $prefix = $wpdb->set_prefix($table_prefix);

the same code base works fine on its own, just not when trying to include via Zend. Any ideas ?

Link to comment
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.