• Sign in to Neowin Faster!

    Create an account on Neowin to contribute and support the site.

  • 0
Sign in to follow this  

Zend Framework + Wordpress

Question

-Dave-    13

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 ?

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.