Skip to main content

CodeIgniter Tutorial


What is CodeIgniter?

CodeIgniter is a PHP Framework and is lightweight compared to other framework. Its purpose is to help you code faster and teach you how to apply MVC (Model–View–Controller) architecture to separate code from design.

What are the advantages of CodeIgniter?

I can’t tell you all the advantages of using CodeIgniter but the following are most common features of using a framework.

  • Speed up development
  • Easy to learn than standard PHP
  • Use existing code rather than starting from scratch
  • Well documented
  • Prevent XSS or CSRF exploit
  • Prevent SQL Injection
  • Separate code from design
  • Built in shopping cart, etc.
  • Support multiple databases (MySQL, postgre, odbc, mssql, sqlite, oci8)
  • Form validation
  • Handle session securely

CodeIgniter is small, fast, and simple PHP framework compare to other competitor. Because it is well documented, the majority of PHP programmers prefer CodeIgniter.

Self-Experience

After coding online hotel reservation, I realize that my code (Standard PHP) is not ready for known vulnerabilities like SQL injection. With this in mind, I tried to modify the code from MySQL to MySQLi. But still I was not convinced because there’s a lot of issue that I need to consider and converting it would require another time. But after deciding of using CodeIgniter, I was able to finish the coding from scratch (functionalities of online hotel reservation) within 2 weeks.

By studying a framework, all you need is to understand on how MVC works. And besides, working with MVC is much easier than standard PHP. One example is using the redirect function. Since CodeIgniter is using and MVC framework, it’s easy to redirect one page to another page.

In this Book, I will teach you all the techniques of using CodeIgniter. So stay tuned while I prepare a tutorial for this.

Note: Due to the size or complexity of this submission, the author has submitted it as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Virus note: All files are scanned once-a-day by SourceCodester.com for viruses, but new viruses come out every day, so no prevention program can catch 100% of them.

FOR YOUR OWN SAFETY, PLEASE:

1. Re-scan downloaded files using your personal virus checker before using it.
2. NEVER, EVER run compiled files (.exe's, .ocx's, .dll's etc.)--only run source code.

Comments

Submitted byAnonymous (not verified)on Thu, 03/21/2013 - 21:43

i love you so much.............

Add new comment

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.