Archive for the ‘CodeIgniter’ Category

Getting Started With CodeIgniter: Part 5 - Loose Ends

Monday, June 16th, 2008

So you understand the basics of MVC. You get the Active Record and all that craziness. You have CI up and running, maybe even with some basic controllers and views. You’re on your way. At this point, it’s the details that start to get confusing. Where do assets (CSS, JS, images, etc.) go? How do I know if this piece of code belongs in a model or a library (or a helper)? How can I change the way URLs are displayed? If this sounds like you, you’re in the right place my friend.

(more…)

Getting Started With CodeIgniter: Part 4 - Security

Sunday, June 1st, 2008

One of the major reasons why PHP frameworks benefit us has to do with the inexperienced (or even average) developer’s lack of security knowledge. PHP (especially database driven PHP) is riddled with loopholes and opportunities to a malicious user to get the best of you, unless you know what you’re doing.

Luckily, CodeIgniter handles a lot of these concerns for you, and gives you the tools to handle the rest. In this section of the CI tutorial, we’ll take a look at many common security threats, including how CI handles them and what you need to do to make sure your CI driven web apps aren’t being threatened by them.

(more…)

Getting Started With CodeIgniter: Part 3 - Database

Friday, May 30th, 2008

And we’re back with part 3 of our incredible CI tutorial. In part 1, we installed and configured CodeIgniter. In part 2, we took a basic look at how CodeIgniter handles the MVC architecture. Now we’ll check out CodeIgniter’s database handling including the Active Record implementation, performing simple CRUD (Create, Read, Update, Delete) operations, and sending query data from models to controllers to views.

(more…)

Getting Started With CodeIgniter: Part 2 - MVC

Friday, May 30th, 2008

Welcome back. In the last section we got up and running with CodeIgniter and familiarized ourselves with the structure and installation of it. This time, we’re going to take a closer look at how CodeIgniter handles MVC, and what MVC really even means!

This is the meat of CodeIgniter and most other web application frameworks (Symfony, Zend, CakePHP, and even the infamous Ruby on Rails). It’s also a really great way to structure any kind of application, and you’ll feel like a better person for having learned it. And it’s good in bed. Moving on…

(more…)

Getting Started With CodeIgniter: Part 1 - Installation

Friday, May 30th, 2008

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!

(more…)