What is PHP Framework?

Corephp provide us basic structure to build the web application but php framework provide us to rapid web application development.

PHP Framework is library or collection of files that make development easier. it reduce developer time.we referred php framework as Model View Controller(MVC).

MVC is an architectural pattern that isolates business logic from the UI(User interface)

Model refers to the data
View refers to the presentation layer
Controller refers to the business logic

Some Top PHP Framework are Laravel, Symfony, Codeigniter, CakePHP, ZendFramework

When CodeIgniter born?

CodeIgniter is a powerful open-source PHP framework develop in 2006, created by Rick Ellis.

In 2014, EllisLab granted ownership of CodeIgniter to the British Columbia Institute of Technology.

CodeIgniter Version

CodeIgniter 2 (legacy)

CodeIgniter 3 (current)   -  Recommended

CodeIgniter 4 (future) 

Download CodeIgniter

What is CodeIgniter

CodeIgniter is an application development framework, which can be used to develop websites. It is an Open Source framework. It is based on MVC(Model-View-Controller) Model


Models are PHP classes, Model classes contain functions, In these function we create logic, retrieve data, insert data,update data, email sending etc. For Create This Go to application->models folder create model class then create function inside this and access from controller.

Views, In application->views folder we create html webpage that display on website.

Controller serves as an intermediary between the Model and Views. We can run only controller , we access model and view from controller, we can not run model and view directly. for this purpose we create controller in controller

Note : When we use codeigniter in first time than by default welcome controller already created and welcome_message page already created in views folder.

Feature of CodeIgniter

1-   Model-View-Controller Based System that provide security

2-   Light Weight Code

3-   Full Featured database classes with support for several platforms.

4-   Some In Built Feature like Form and Data Validation, Email Sending Class with Attachments, Image Manipulation Library (cropping, resizing, rotating, etc.), Pagination,Calendaring Class, Cart class many more.

5-   Search-engine Friendly URLs

Application Flow Chart


The index.php serves as the front controller, initializing the base resources needed to run CodeIgniter.

The Router examines the HTTP request to determine what should be done with it.

If a cache file exists, it is sent directly to the browser, bypassing the normal system execution.

Security. Before the application controller is loaded, the HTTP request and any user submitted data is filtered for security.

The Controller loads the model, core libraries, helpers, and any other resources needed to process the specific request.

The finalized View is rendered then sent to the web browser to be seen. If caching is enabled, the view is cached first so that on subsequent requests it can be served.