Getting Started With CodeIgniter: Part 1 – Installation

CodeIgniter is an “Open Source Web Application Framework that helps you write kick-ass PHP programs.” The website says it all. CodeIgniter is BALLER. However, it’s documentation is awesome after you get going, but getting going is a little tougher. That’s what I’m here for. Hopefully, after this tutorial, you’ll know your way around CodeIgniter and have a pretty good feel for the MVC architecture.

In part one, we’re going to learn about installation and configuration of CI, and also get a feel for the folder structure (which always seems to scare people away). So let’s get going!

Some Background Info

For those unfamiliar with PHP frameworks or the MVC (Model, View, Controller) concept in general, here’s a little background. MVC architecture is a tried and true method of organizing source code and program files. Basically, it separates the front end from the back end.

CodeIgniter implements the MVC architecture pretty well, and then throws in TONS of PHP classes and helpers to get things done more quickly. You’ve got an image manipulation class that gives you functions to resize, crop, and watermark an image easily. You’ve got a captcha class that makes it pretty simple to generate captchas for web forms. You’ve even got a ZIP encoding class that makes it simple to create zip packages dynamically in your web site. I wouldn’t be surprised if CI 2.0 came complete with kitchen_sink.php! Shut up. That was funny.

Taking A Look Around

Now let’s take a look at CodeIgniter to see what we’re working with. Download the newest version from the CI site and extract it onto your server somewhere. Now open it up with a file browser and take a looksee!

Read More »

Posted in php | Tagged , | 1 Comment