473,378 Members | 1,391 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,378 software developers and data experts.

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);
require('./wp-blog-header.php');
?>

Mar 9 '07 #1
0 4086

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Michele Ferretti | last post by:
http://www.blackbirdblog.it/programmazione/progetti/28 -- Michele Ferretti ICQ#: 14491159 Skype: m.ferretti79 black DOT bird AT tiscali DOT it www.blackbirdblog.it
1
by: Gerry Vandermaesen | last post by:
Hi, I was looking into CodeIgniter, and encountered the following problem: In codeigniter, you could create a new controller like this: --- class People extends Controller { function...
0
by: Hasin Hayder | last post by:
Today I developed this tool to import wordpress blog rolls as XML document. You know when you export data from wordpress.com that doesn't include the blog rolls data. So if you want to keep a...
9
by: Nooze Goy | last post by:
I'm trying to use a blog client to write messages with "attached" .pdf content to WordPress blogs. WIth the "Direct Upload" mechanism, the attached files work for some types (like .txt) but fails...
7
by: maya | last post by:
hi expert php'ers.....;) is it ok to ask WordPress questions here? I mean if you don't get a response to your quetion in WP forums where else can you go?? I have WP 2.3 installed on my own...
4
by: sleepy1038 | last post by:
Hello, I'm developing a site that makes use of wordpress. The homepage is outside of wordpress and I am pulling the latest 3 blog posts from the wordpress database to display on the homepage....
3
by: Bhavesh | last post by:
hi everyone, i want to use wordpress in my C#.net website ,,so is it possible to use ? b'coz wordpress requires Php, mysql & apache... If not then which DOTNET blog tool is best which can...
5
TheServant
by: TheServant | last post by:
I have recently (today) started doing something worthwhile on CodeIgniter, which is fantastic BTW. I have a problem and I can't figure out what is going wrong. I will post what I have now, but this...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.