• Hi!

    I have a Zend MVC website (using, of course, Zend Framework) and I would like to embed WordPress functions to my layout.

    I saw a couple of sites saying that you only have to include :
    require("wp-load.php");

    or
    require("wp-blog-header.php");

    … to make it work but no matter what I try, I always get :
    Fatal error: Call to undefined method stdClass::set_prefix() in wp-settings.php on line 270

    Does anyone know how to solve this ?

    Please note that I already have this website so installing WordPress and embedding Zend (which I know there is a pluggin to do that) is not an option.

    Thanks!!

Viewing 2 replies - 1 through 2 (of 2 total)
  • I’m trying to do the same with CodeIgniter. I want an auth system that works for both WP and the custom system I’m designing. I’m getting the same error that you are. I came here for help, but it doesn’t appear anyone has found a resolution yet.

    There’s quite a few threads with this same issue, such as here, here, here, and here. If anyone has found a solution, please post it.

    Trying to do the same thing here, hope someone figures something out. I tried putting the require inside a function and that didnt work either.

    Hey gthorne, have you found a solution yet?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Embed WordPress into Zend MVC application’ is closed to new replies.