469,926 Members | 1,745 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,926 developers. It's quick & easy.

CodeIgniter with Wordpress ?

I am doing some preliminary research as we are slated to do a project
with wordpress. I looked at the wordpress code and realized why I like
MVC so much (Rails) because the code mixed in with the rendering
looked like a mess to me. I'm not at all sure exactly what we will be
doing on the project as the details haven''t been discussed yet.

I found that the Wordpress API doesn't look well documented. I set up
wordress and created some blog posts. I was then able to install
codeigniter and access the wordpress database through codeigniter. I
decided to try doing my research with codeigniter because it's
lightweight and it's unclrear if they will let us use an MVC framework
to begin with, but I figured codeigniter was the best bet to try to
present since the learning curve would be smaller and getting it to
work with wordpress if that is possible might be easier etc.

The biggest thing to work out it seems like is to try to figure out
how to get both codeigniter and wordpress working together because
each's engine probaly figures it owns the URL's comeing from the
browser. I can actually get them to render together on the same page,
but it's not consistent, and I am not sure what is really going on. I
unclear how to work out a scheme on that that would be guaranteed to
work all the time.
I am new to PHP and am not sure how the URL paths are worked out with
these engines or otherwise.

Basically the codeigniter has a fairly long index.php and Wordpress
has a short one. I combined them and the wordpress is at the end and
starts where it says
"Short and sweet" below. Obviously pages that are totally seperate,
that is our stuff from wordpress stuff would be easier to work out,
but I am not sure if anyone has ever done stuff like this and if there
are some strategies you could use.
# long bunch of codeigniter index.php stuff starts here

require_once BASEPATH.'codeigniter/CodeIgniter'.EXT;
# end of codeigniter index.php
# Wordpress index.php starts:

/* Short and sweet */
define('WP_USE_THEMES', true);

Mar 9 '07 #1
0 3837

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

14 posts views Thread by Michele Ferretti | last post: by
1 post views Thread by Gerry Vandermaesen | last post: by
reply views Thread by Hasin Hayder | last post: by
9 posts views Thread by Nooze Goy | last post: by
7 posts views Thread by maya | last post: by
4 posts views Thread by sleepy1038 | last post: by
3 posts views Thread by Bhavesh | last post: by
5 posts views Thread by TheServant | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.