Codeigniter Menu

HTML CSS

Video

Sound

SEO


Feb 13
2011

Integrating Codeigniter into Wordpress

Posted by bohemia in Untagged 

Codeigniter applications can be integrated into various content management systems; such as Wordpress, Joomla and Expression Engine. Since Expression Engine is built with Codeigniter, it is the best fit. For those who want to integrate a Codeigniter application into Wordpress, here are a couple of links.

Integrating Codeigniter into Wordpress A


Integrating Codeigniter into Wordpress B

Integrating Codeigniter into Wordpress C

Dumping Codeigniter inside Wordpress

Besides the links the mentioned above, there is an another valid alternative for which using a Codeigniter application inside a Wordpress CMS can be achieved. Simply dump a codeigniter installation inside the Wordpress installation. For example, if the site was called mysite.com the Codeigniter folder would reside at mysite.com/codeigniter. Now, an external link from, the main menu or from any other link could point to the desired folder. With this solution, the Codeigniter installation could use a stand-alone database or the Wordpress database. To use the Wordpress database, the current Codeigniter database would need to be dumped into the Wordpress database and the config.php file would need to be edited to connect to the new database.

Please hear me out, before you decide to comment regarding why this idea for using Codeigniter inside of Wordpress is a bad idea. With Codeigniter, after learning its ways, you will see that its logic to making applications is superior to any content management system; unlike plugins and extensions and modules that are cms specific and take a long time to recode. It is so portable that you can use it anywhere in other content management systems for which the only really extra work is to use the default CMS template. Once you set the link to the existing CMS templates, it will already exist in the cache and never look out of place. You would never know Codeigniter is inside a cms except for looking at the source code. After looking at the source code, it could be anything since there is not trace to a Codeigniter installation. Finally, the Codeigniter app is ready for Expression as it is, or with simple modifications it can be made into a module.

As far as SEO goes, no problem. Since it will link form the menu it will be picked up. The page can also be added to the sitemap.
Comments (2)add comment
...
written by a guest , May 04, 2012

Hi, i am surprised no one has commented on this post. I found this fairly detailed link to add here - http://marion.newlevant.com/bl...deigniter/

I have tried a couple of solutions (having ci load as a theme and just having ci in a sub dir) and as well tried this ci + wp plugin - http://wordpress.org/extend/pl...-igniter/. Seems i am missing something.... What i am trying to accomplish is to simply bring a mini CI app into wordpress framework. My biggest problem is getting the links within the CI app to integrate into the site proper (wp).



...
written by a guest , May 06, 2012

Cannot help you there. But, in the future, you could create a new template file file and use pure 'php / mySQL' in the template file. This allows you to connect and use any database. Much more friendlier than the technique you are using now. I am not a huge Framework fan. First of all, I think Codeigniter is a commercial for Expression Engine. I prefer using the raw language....better performance and more freedom. Using a Framework is restrictive. If you have a solid proficiency in php / mySQL and Object Oriented PHP, you may find making your own classes and applications more fun and faster performance with using a new Wordpress template file based off page.php.



Write comment

busy