Code Igniter and Wordpress
For those who don’t know, Code Igniter is an open source PHP framework. And of course, Wordpress is blogging software. When you create a Wordpress theme, you have to put it into the /wp-content/themes/folder. To list the blog’s categories, you use the function wp_list_categories(), which puts the categories in an unordered list. The function takes some arguments for formatting, but there is very little you can do with wp_list_categories(). For example, you can’t display all categories that contain a certain string (in title or description). Sometimes you just want more control over how things are displayed, and Wordpress’s method of displaying themes just doesn’t give it to you.
That is why I am using a Code Igniter install as my blog theme. I have created several Code Igniter Wordpress Models that allow you to pull exactly what you want from a Wordpress database. This way, you can use Wordpress as a blog administration tool, and Code Igniter can show your stuff, how you want it.
The Code Igniter install does not go into the /wp-content/themes/ folder - it goes in your site root. Just throw my CI+WP models into the /system/application/models/ folder, and you’re good to go!
Gavin Blair @ May 11, 2008
So, where are these models located then?
I’m still working on it… I’m a busy guy
Its called a beta (or Alpha) release
It’s not even that far yet. I have most functions defined, and a couple made, but thats it. It’s on hold until I figure out a direction for Busby.