WordPress.org

Ready to get started?Download WordPress

Forums

Embed WordPress into Zend MVC application (3 posts)

  1. Maxime Jobin
    Member
    Posted 4 years ago #

    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!!

  2. gthorne
    Member
    Posted 4 years ago #

    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.

  3. JohnyRed
    Member
    Posted 4 years ago #

    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?

Topic Closed

This topic has been closed to new replies.

About this Topic