Discussion off the wiki article "Integrating Wordpress and Yii: still another approach, using Yii as the router/controller"

This innovation is awesome. What are the odds of being able to retrofit a Yii 1.15 site with this integration? If those odds are good, will all WP plugins then be available to the hybrid?


This innovation is awesome. What are the odds of being able to retrofit a Yii 1.15 site with this integration?

Should work fine with Yii 1.1.15, I believe I was doing it with 1.1.10 or so.


If those odds are good, will all WP plugins then be available to the hybrid? 

Should be, yes. Note that I haven’t heard of any Yii1 / Wordpress integrations running in the wild yet, so it may take a bit of work. But I successfully used this approach with a mixture of Yii1 / Drupal while we phased out Drupal. Thankfully Drupal’s gone now :wink:

Does the instruction documented by Bibi40k applicable to Yii 2.x? Anyone tried?

I have tried to adapt the following to yii2

http://www.yiiframework.com/wiki/322/integrating-wordpress-and-yii-still-another-approach-using-yii-as-the-router-controller/

from this repo:

https://github.com/acorncom/yii-wordpress-integration

but unfortunately the URLs routing to wordpress seems not to work.

Yii pages are displayed in the template, WordPress navigation shows up, but if I click to a link I get a 404.

:unsure: Does someone have an idea why the wordpress urls can’t be resolved?

(I tried exactly the same setup with yii1, there the urls are resolved successfully.)