Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter Ahlforn

    (@ahlforn)

    You are right. My initial reason for including WP was to avoid the hassle of navigating the db as well as dealing with formatting of the output.

    I eventually figured out that the error was caused by program with the global keyword in php not functioning properly when I included WP within a function. So I ended up with a solution where I detect if the page requested needs WP and then include WP even before starting the Yii application. It’s not a very elegant solution but it works and the performance is decent enough for the site I’m working on.

    But thanks for your response ??

    I have the exact same problem after I moved my site to a new host. I haven’t been able to trace the problem, so I’m hoping someone know how to fix this.

Viewing 2 replies - 1 through 2 (of 2 total)