CodeIgniter Forums

Full Version: how to integate ci into wordpress ?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[eluser]whidbey[/eluser]
hi all,
I am seeking a way to integated ci with wordpress. one of my site write by codeigniter,but I would like to make the index.php to be wordpress's ,and I dont' want change the function of my codeigniter site.
just embbing it, any suggetsiton? thanks first.

El Forum

[eluser]EEssam[/eluser]
Hello,

You need to change "index.php" from config/config.php and set it to whatever you want.

El Forum

[eluser]Colin Williams[/eluser]
There's no blanket way to integrate CI and WordPress. It depends on what you want to do. One problem you might encounter is that WP has a very specific theming engine, with special functions for pulling in posts, plugins, etc. So, I would anticipate it might be a bit difficult to share templates between the two.

But as EEssam pointed out, you can change the name of your front controller for CI, index.php by default, so it doesn't clash with WP's front controller, also index.php by default. Refer to http://ellislab.com/codeigniter/user-gui..._apps.html for some more info.

El Forum

[eluser]whidbey[/eluser]
[quote author="Colin Williams" date="1214695102"]There's no blanket way to integrate CI and WordPress. It depends on what you want to do. One problem you might encounter is that WP has a very specific theming engine, with special functions for pulling in posts, plugins, etc. So, I would anticipate it might be a bit difficult to share templates between the two.

But as EEssam pointed out, you can change the name of your front controller for CI, index.php by default, so it doesn't clash with WP's front controller, also index.php by default. Refer to http://ellislab.com/codeigniter/user-gui..._apps.html for some more info.[/quote]

well,thx for your advise. I will consider it:-), but if anyone has the same solution,I would like to use it too:-)