473,800 Members | 2,413 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.'codei gniter/CodeIgniter'.EX T;
# 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 4110

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

Similar topics

14
3712
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
1938
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 index() { ... }
0
1974
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 backup of your blog rolls, you can use this tool to import your blog rolls data.. You can even use it with your wordpress.com accounts <img src='http://hasin.files.wordpress.com/2007/04/importer.gif' alt='importer.gif' />
9
3111
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 with .pdfs, with a message about an XML parsing error. However, the XML code looks pretty good to my untrained eye, and gives no errors when run through some verifiers , and there are no errors in the httpd logs. As far as I can tell, this is...
7
2706
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 hosting server.. I'm tying to do something that should be quite simple yet I can't get it to work... I want to do my own form, w/o having to use a plugin.. I tried a contact plugin, but you can't specify what address to send email to, which
4
3775
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. The problem is that special characters (&mdash;) for example, do not display properly. It displays as a "?" with a diamond around it �. The characters actually display fine withing the wordpress blog portion of the site. I tried changing the...
3
9171
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 provide much same functionality of wordpress blog tool.. any help will be appreciable..
5
2285
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 has been changed so much in the past hour, it hardly reflects my efforts! Control Call $data->settings = $this->settings->get_settings(); Model Function function get_settings() { $query = $this->db->get('settings');
0
9691
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9551
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10505
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10253
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
1
7580
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6813
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5471
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
4149
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3764
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.