Monthly Archives: August 2009

CODE IGNITER PHP framework – Help and Intro


CI logo

CI logo

What is Code Igniter?

Code Igniter is a framework for PHP developers to create a powerful web apps!

What does Code Igniter offer?

Code Igniter provides a rich set of libraries for all the common tasks with an easy to learn structure for accessing these libraries.

What are the advantages?

  • Code Igniter helps a developer keep his application organised.
  • It increases code reuseability to a very great extent.
  • It prevents errors to a bigger scale
  • It also saves time. thats the prime foactor!!
  • The application built using CI shows improved performance.

How does CI organise the application?

When you download a CI package from the site and extract in the root of your application folder you will find a folder

Codeigniter ->System->application

This application folder should only be modified while the application is built.

What CI does is it splits the application into several pieces as follows:

  • Models
  • Views
  • Controllers

What do these pieces contain?

  • Models: The Models folder contains only those files that involve database operations such as INSERT, UPDATE, SELECT, DELETE, DROP etc.
  • Views: The Views folder contains only those files that are going to be viewed by the application user
  • Controllers: The Controllers folder contain only those files that process the data entered in some page(from views folder)

In this manner CI provides a proper structure for the application.

Where are the CI library features?

The CI library is more commonly known as “helpers”.Click here for documentation on “helpers”.

How to set up CI in my application?

1.Go to  this link and click on download option.

2. extract the package obtained

3.Now place the folder in the root of your application folder

Thats it!

You have set up CI for developing your application! 🙂

I have located some tutorials on how to use CI:

Click here for nice one

This site has lots of tutorials on using the CI libraries.

Hope you got some idea about CI. For more detailed reference please go here

Cheers

Vidhoon V