CodeIgniter is an awesome tool if you want to learn PHP or start to use object oriented programming (OOP) with your new website. CodeIgniter is flexible with a small footprint and offers tons of features already built in, such as session management, active record use with mysql databases. The best part is it lets you use Model-View-Controller (MVC) programming. This way, your styling (view) is separate from your content (generated by controller) and lets you manipulate your raw data with a model.
There are two awesome video tutorials on CodeIgniter to show you how powerful and easy CodeIgniter can be when starting a website; however the first time I tried setting up an application I had trouble linking to images, css, and javascripts and setting up an htaccess file for friendly URLs. I have included a set of directions to help with these issues in your first CodeIgniter app.
I am working on a mac so if you have one also the tutorial may be a bit easier to follow. This tutorial also assumes you have a running apache web server with PHP and MySQL installed.
You will need a few files to start with your CodeIgniter app. You can download them from their websites below or download the zip file full I have compiled with everything you need (including CodeIgniter 1.5.4 and full compiled mootools). If you download my zip file with all the necessary components, just drag the files to a new directory in your server folder and you can skip right to developing a controller and view.
Now that you have CodeIgniter, drag the index.php file and system folder to a new project folder in your hosting root. I named my project folder c3. In this folder, I have created a few folders: images, _js, css, and uploads. Remember the names of these folders because you will need them for your .htaccess file.

In order to use friendly URLs with CodeIgniter, you need to set up an .htaccess file in your project folder. On my Mac and the web server I use, the file is invisible, but if you open your project folder with textmate you will be able to create the file and access it later. Inside this is what I have successfully used on my mac for rerouting to work.
Options +FollowSymLinks
RewriteEngine on
#RewriteCond $1 !^(index\.php|images|css|_js|uploads|robots\.txt)
#RewriteRule ^(.*)$ /~danielerrante/bizwidgets/index.php/$1 [L]
Creating an .htaccess file will solve a lot of headaches later down the road. This enables your website to get photos, javascripts and css files from the appropriate folders while still re-routing page calls.

Next, you want to create a controller. This will handle any processing you may require before sending a view to your visitor. Here, I have a controller called home.php
You need to create a class that extends Controller like this:
class Home extends Controller {
function Home() {
parent::Controller();
}
function index() {
$this->load->view('home_view', $data);
}
}
Now, you have a working controller. Next we will make a view for the home controller. Since we want to load the view ‘home_view’, we are going to create home_view.php in the views folder.

As you can see in the top of the HTML code, I like to create a header (and footer further down) for each one of my pages. Then I call the header and footer at the top and bottom of each page. This way, If I need to change something in the header, such as the page title or meta tags, I can do it on the header file once.
If you visit http://your-host-name/home your page should be working.
And, that’s it. Have fun with CodeIgniter. The forums are a great resource when you get stuck. Also check out the forum on mootools. The user guide included with CodeIgniter will also help you understand MVC programming and give you more instructions on how to use CI to its full advantage.
Thanks for reading! Tell me what you think!
Come back soon for Part 2 on MooTools.
aprender a decorar con foamy
3rd street crips
7 up icing recipe
9yo nude girls fucked
3 5hp tecumseh carburetor governor linkage
1 800 4 braids website
59 piru gang knowledge
72 grams equals
atwood furnace electrode adjustment
albemarle district jail inmates mugshots
mossburg 42b parts
att email support for outlook 2007
1974 chaparral snowmobile
askanjali com
balance of my 401k thru jcpenney
ast scot blood test
1965 ford charging system diagram
aundrea fimbres myspace
memorial hermann gn internships 2010
artist music willie sherman
I’m a huge lover of your blog! Look at my website, You can analyze your blog there!
Gran articulo, puedo linkearlo desde mi sitio web ?
kite tattoo
aphisatha nude thai models
3 cc equals how many ml
2dahani iranian
27 degrees centigrade to fa
barbara blank naked pics
1995 goldwing bulb specs
93 eastside blood
95 7 el basilone
alpo sentence
arrest records memphis tn
32 40 winchester ballistics
classifieds cambodia casino sex
att mcafeesoftware
barkingdogstop com
1995 f250 5 8l diagrams
alvin and the chipmunks squeakil cast
92 5 7 fiiring order
22 mag rifle bullet trajectories charts
craigslistmo furniture
ballistic foam type 10 2 5a
7 62×54r wolf gold 150gr fmj velocity
ancient armenian tattoos
ashlee simpson plastic surgery
allen roth creative suites
16 millimeters equals how many centimeters
ah cabron com
alicenewstar review
barber haircut designs
40 cal freestyle battles
4 drugs in chemo miracle mouthwash
alabama iron cross kennels
1970 pontiac 350 distributor diagram
actress kate cassidy nude
2000 olds alero security system disable reset
25 caliber handgun titan
125 grams equals how many cups
southbay paper long island new york
357 lever guns
3 1d damacai result
disney anime porn pics
30 06 rifle brass dimensions
35 week fetus baby pictures
univison sala de chat
alliant reloader 17 data
2001 chevy 5 7 cylinder order
50 grams equals how many tablespoons
althea flynt nude
aliyah jungle booty
700 ml ounces
actress virginia williams nude sexy pics
alabama biker babe fucking
allen roth bathroom vanities
alina 9yo sis
animation sex
16 oz equals
acls questions 2007
7 62×39 500 yards
diagram llama 22 firing pin
kelly duggar
amai moretti videos scene fuck in ass
attack of the 50ft woman
deepest condolences sample spanish
anh khoa than yen vi
10 examples of simile student sentence metaphor
dread lock beauty supply in dallas tx
ya pageme don cheto
myatt yahoo
40 cal trajecory
auguste moore beauty of the week
130 foot pounds equals newton metres
antique rossi 22 revolver
20 cc equivalent to how man ml
apple bottoms buttocks picture
apni phude kahani
3500 ml in lbs
and the wailers
flat twists extensions
blank preschool lesson plan calendars
asymetrical short hair styles
270 win bullet moving at 3200 fps
2 x 75mcg equals
ati marlin stock photos
50 ounce capacity how many litr
armscor chargeur
a poem with abcb rhyme scheme
ac pf52 application
13 bus from metronorth station whiteplains scheldule
above ground pool dealers in cincinatti
apbt boudreaux kennels
angelica panganiban nipples
32 cal muzzle loading long gun
axilas hombres
alpha kappa performance costumes
adult truth or dare questions
amrmail aa com outlook
ashley ann maxim
4th grade reading taks printable activities
8 kg equal how many gallons
sanyo dp46848 remote
I can’t believe Cameroon is out. That was a quick exit. I really expected that they had a good chance to do well in this years world cup. Maybe in four years. Maybe its time to jump on the Argentina bandwagon. Looks like Demichelis has already scored. Go Argentina. To make me feel better from that devistating loss by Cameroon, I have been watching some funny jokes.. This joke is really funny: http://www.youtube.com/watch?v=N3j7uSbccSc
Dear admin, thnx for sharing this blog post. I found it wonderful. Best regards, Victoria…
Great post! Thank you!
the chi