際際滷

際際滷Share a Scribd company logo
Basic Tutorial
Index
This is a tutorial with basic
instructions about CodeIgniter.



Its purpose is to help someone
with no prior knowledge of
frameworks, to understand its
basic principles and how it
works.









Index
About Frameworks
About MVC
Intro to CodeIgniter
Controllers
Routes File
Models
Frameworks
Frameworks are abstract, reusable platforms where we can develop
our applications.

They help in writing reusable and better constructed code.
Their main characteristic is the MVC (Model  View  Control)
architecture pattern.
MVC
The MVC architecture pattern separates the representation
of data from the logic of the application.
The View is what the visitors of the web application see.
The Controller is responsible for handling the incoming
requests, validating input and showing the right view.
The Model is responsible for accessing the database or
executing other operations.
MVC
Controller
Gets incoming requests.
Displays the right View.
Communicates with the
model.

The Controller calls
the Model.

Points to a View and
carries data.
Triggers a Controller

The Model retrieves / creates the
data asked and returns them to the
Controller
Model
Queries the database.
Executes operations.
Gives data to controller.

View
What the visitors see.
Html pages with PHP.
Displays data from
Controller
What is CodeIgniter
CodeIgniter is a PHP framework, easy to learn, suitable for
beginners.
 It needs no extra configuration.
 You do not need to use the command line.

 It is extremely light.
 You dont need to learn a templating language.
 It is suitable for small or big projects.

All in all, you just need to know some PHP to develop the
applications you want.
Intro to CodeIgniter
How does a Controller trigger?
Each Controller triggers by a certain URI.
What happens when a Controller is triggered?
It then calls a Model (if any data should be retrieved or created),
it finds the View that should be shown to the visitor and then it
returns that View with the corresponding data.
How does CI knows what Controller to trigger?
This is defined by routes. Routes is a PHP configuration file that
maps each URL of our web project to a Controller and a certain
function.
Intro to CodeIgniter
User enters the URI of
the project

CI gets the request and
checks the routes file to
find any matches.

If a match is found, it
triggers the right
Controller and function.

View and data is
represented to
the user.

After the data is retrieved
the Controller finds the
right View and returns it.

The Controller calls the
right Model to retrieve /
create the data needed.
Controllers  The Class
A controller in CI is basically a custom made class, which inherits from the
CI_Controller class.

class WELCOME extends CI_Controller {
}

Create a controller with name
welcome.php. The new
controller is located into
applications/controllers folder.

In every controller we create, the constructor method must be
declared. In the constructor we can load libraries, models, the
database, create session variables and generally define content that
will be used by all methods. The constructor must have the same
name as the class.
Controllers  The Constructor
public function WELCOME() {
parent::_construct();

The first function of the controller is
the constructor, where we can load

$this->load->helper(url);
$this->load->helper(file);

 the helper libraries we may
need.

$this->load->database();

 the database of our project

$this->load->model(welcome_model);
}

 and the models we need.
Controllers  The Functions
Then we can write the functions of the controller, that will be triggered by
the system. The functions can either perform some operations (through
the model), load a view, or even both.

public function home () {
if (!file_exists(application/views/home.php)){
show_404();
}
$this->load->view(home);
}

The most usual operation is
to check if a view file exists
and load it.
View files are located in
application/views folder.
Views are what the visitors
see.
In case it does not exist, a
404 error message is
displayed to the visitor.
Controllers  The Functions
public function home () {
if (!file_exists(application/views/home.php)){
show_404();
}
$data[files]=$this->welcome_model->get_data();
$this->load->view(home,$data);
}

In case we need to send some data to the view, we retrieve them by calling the right
function from the model and then load them with the view. In the above example, the
data is then accessible by the name files in the home view.
Routes File
The routes file contains the matches for the URIs and the Controllers /
Functions.
There is a default controller which is triggered from the Base URL of
our project (e.g. www.my_project.com).
$route[default_controller]=controller_name/function_name;
So, if we try to access the www.my_project.com, the routes file
understands it as the default controller and triggers the controller and
function we define, e.g. the welcome controller and the home function.
$route[default_controller]=welcome/home;
Routes File
There is a pattern which we have to follow in order to create mappings of
URIs and controllers / functions.
my_project.com/class/function/id/
The first segment is reserved for the controller class, the second for the
function and the third of any values we want to pass as arguments
(optional). In case we dont want to follow this pattern, the URI handler
has to be reconfigured.
If we want to map another URI, we have to follow that pattern. In the
following example if the URI is www.my_project.com/welcome/blog, CI
triggers the welcome controller and the blog method.
$route[welcome/blog]=welcome/blog;
Models  Class/ Constructor
In a model we perform some tasks such as execute database queries, read / write
files or perform other operations. The models are located in applications/models
folder.

class Welcome_model extends CI_Model {

Each model we create, extends from
the CI_Model.

public function _construct () {
$this->load->database();
}

At first we have to write the
constructor of the model. In the
constructor we load the database or
other helper libraries.

}
Models - Functions
class Welcome_model extends CI_Model {
public function get_data() {
$query=$this->db->get(.);
/* perform other operations */
return $files;
}
}

In a model function we can perform
any operation we need, and then
return the data to the corresponding
function in the controller.
End of tutorial
The previous topics complete a basic intro into CodeIgniter and how it
essentially works.
CodeIgniter supports helpers, which is essentially a collection of functions
in a category, for example the helper for working with files (read / write) is
file and libraries as form validation. All of these can come in handy and
help a lot in developing your projects.
The database class of CodeIgniter supports both traditional structures as
Active Records patterns. Also, someone could set up CodeIgniter to run
with Doctrine (ORM), a topic that will be presented in another tutorial.
For the complete CodeIgniter documentation visit here.
Thank you for reading my tutorial.
Ad

Recommended

5 collection framework
5 collection framework
Minal Maniar
Java exception
Java exception
Arati Gadgil
Multi threading
Multi threading
Ravi Kant Sahu
Core java course syllabus
Core java course syllabus
Papitha Velumani
java.io - streams and files
java.io - streams and files
Marcello Thiry
OCP Java (OCPJP) 8 Exam Quick Reference Card
OCP Java (OCPJP) 8 Exam Quick Reference Card
Hari kiran G
Success story of Ritesh Aggrwal
Success story of Ritesh Aggrwal
KishanChauhan39
Building RESTtful services in MEAN
Building RESTtful services in MEAN
Madhukara Phatak
Top 100 PHP Questions and Answers
Top 100 PHP Questions and Answers
iimjobs and hirist
Advanced Tips & Tricks for using Angular JS
Advanced Tips & Tricks for using Angular JS
Simon Guest
Javascript Best Practices
Javascript Best Practices
Christian Heilmann
Mysql Crud, Php Mysql, php, sql
Mysql Crud, Php Mysql, php, sql
Aimal Miakhel
PHP - Introduction to PHP MySQL Joins and SQL Functions
PHP - Introduction to PHP MySQL Joins and SQL Functions
Vibrant Technologies & Computers
Codeigniter
Codeigniter
minhrau111
LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQL
Akhil Mittal
Mvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senja
alifha12
Mvc interview questions deep dive jinal desai
Mvc interview questions deep dive jinal desai
jinaldesailive
Get things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplications
Giuliano Iacobelli
8-9-10. ASP_updated8-9-10. ASP_updated8-9-10. ASP_updated
8-9-10. ASP_updated8-9-10. ASP_updated8-9-10. ASP_updated
dioduong345
Creating Single Page Web App using Backbone JS
Creating Single Page Web App using Backbone JS
Akshay Mathur
Jinal desai .net
Jinal desai .net
rohitkumar1987in
Folio3 - An Introduction to PHP Yii
Folio3 - An Introduction to PHP Yii
Folio3 Software
Spring mvc
Spring mvc
nagarajupatangay
MVC in PHP
MVC in PHP
Vineet Kumar Saini
IRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHP
IRJET Journal
Principles of MVC for Rails Developers
Principles of MVC for Rails Developers
Edureka!
MVC 4
MVC 4
Vasilios Kuznos
Yii php framework_honey
Yii php framework_honey
Honeyson Joseph
Sitecore MVC (User Group Conference, May 23rd 2014)
Sitecore MVC (User Group Conference, May 23rd 2014)
Ruud van Falier
How to Create and Load Model in Laravel
How to Create and Load Model in Laravel
Yogesh singh

More Related Content

Viewers also liked (6)

Top 100 PHP Questions and Answers
Top 100 PHP Questions and Answers
iimjobs and hirist
Advanced Tips & Tricks for using Angular JS
Advanced Tips & Tricks for using Angular JS
Simon Guest
Javascript Best Practices
Javascript Best Practices
Christian Heilmann
Mysql Crud, Php Mysql, php, sql
Mysql Crud, Php Mysql, php, sql
Aimal Miakhel
PHP - Introduction to PHP MySQL Joins and SQL Functions
PHP - Introduction to PHP MySQL Joins and SQL Functions
Vibrant Technologies & Computers
Codeigniter
Codeigniter
minhrau111
Top 100 PHP Questions and Answers
Top 100 PHP Questions and Answers
iimjobs and hirist
Advanced Tips & Tricks for using Angular JS
Advanced Tips & Tricks for using Angular JS
Simon Guest
Mysql Crud, Php Mysql, php, sql
Mysql Crud, Php Mysql, php, sql
Aimal Miakhel
PHP - Introduction to PHP MySQL Joins and SQL Functions
PHP - Introduction to PHP MySQL Joins and SQL Functions
Vibrant Technologies & Computers
Codeigniter
Codeigniter
minhrau111

Similar to CodeIgniter 101 Tutorial (20)

LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQL
Akhil Mittal
Mvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senja
alifha12
Mvc interview questions deep dive jinal desai
Mvc interview questions deep dive jinal desai
jinaldesailive
Get things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplications
Giuliano Iacobelli
8-9-10. ASP_updated8-9-10. ASP_updated8-9-10. ASP_updated
8-9-10. ASP_updated8-9-10. ASP_updated8-9-10. ASP_updated
dioduong345
Creating Single Page Web App using Backbone JS
Creating Single Page Web App using Backbone JS
Akshay Mathur
Jinal desai .net
Jinal desai .net
rohitkumar1987in
Folio3 - An Introduction to PHP Yii
Folio3 - An Introduction to PHP Yii
Folio3 Software
Spring mvc
Spring mvc
nagarajupatangay
MVC in PHP
MVC in PHP
Vineet Kumar Saini
IRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHP
IRJET Journal
Principles of MVC for Rails Developers
Principles of MVC for Rails Developers
Edureka!
MVC 4
MVC 4
Vasilios Kuznos
Yii php framework_honey
Yii php framework_honey
Honeyson Joseph
Sitecore MVC (User Group Conference, May 23rd 2014)
Sitecore MVC (User Group Conference, May 23rd 2014)
Ruud van Falier
How to Create and Load Model in Laravel
How to Create and Load Model in Laravel
Yogesh singh
Rails notification
Rails notification
baran19901990
AspMVC4 start101
AspMVC4 start101
Rich Helton
Sitecore MVC (London User Group, April 29th 2014)
Sitecore MVC (London User Group, April 29th 2014)
Ruud van Falier
Code igniter - A brief introduction
Code igniter - A brief introduction
Commit University
LearningMVCWithLINQToSQL
LearningMVCWithLINQToSQL
Akhil Mittal
Mvc4 crud operations.-kemuning senja
Mvc4 crud operations.-kemuning senja
alifha12
Mvc interview questions deep dive jinal desai
Mvc interview questions deep dive jinal desai
jinaldesailive
Get things done with Yii - quickly build webapplications
Get things done with Yii - quickly build webapplications
Giuliano Iacobelli
8-9-10. ASP_updated8-9-10. ASP_updated8-9-10. ASP_updated
8-9-10. ASP_updated8-9-10. ASP_updated8-9-10. ASP_updated
dioduong345
Creating Single Page Web App using Backbone JS
Creating Single Page Web App using Backbone JS
Akshay Mathur
Folio3 - An Introduction to PHP Yii
Folio3 - An Introduction to PHP Yii
Folio3 Software
IRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHP
IRJET Journal
Principles of MVC for Rails Developers
Principles of MVC for Rails Developers
Edureka!
Yii php framework_honey
Yii php framework_honey
Honeyson Joseph
Sitecore MVC (User Group Conference, May 23rd 2014)
Sitecore MVC (User Group Conference, May 23rd 2014)
Ruud van Falier
How to Create and Load Model in Laravel
How to Create and Load Model in Laravel
Yogesh singh
Rails notification
Rails notification
baran19901990
AspMVC4 start101
AspMVC4 start101
Rich Helton
Sitecore MVC (London User Group, April 29th 2014)
Sitecore MVC (London User Group, April 29th 2014)
Ruud van Falier
Code igniter - A brief introduction
Code igniter - A brief introduction
Commit University
Ad

Recently uploaded (20)

AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
Key Requirements to Successfully Implement Generative AI in Edge DevicesOpt...
Key Requirements to Successfully Implement Generative AI in Edge DevicesOpt...
Edge AI and Vision Alliance
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
ICT Frame Magazine Pvt. Ltd.
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Seminar: Targeting Trust: The Future of Identity in the Workforce.pptx
FIDO Alliance
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
ReSTIR [DI]: Spatiotemporal reservoir resampling for real-time ray tracing ...
revolcs10
Crypto Super 500 - 14th Report - June2025.pdf
Crypto Super 500 - 14th Report - June2025.pdf
Stephen Perrenod
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Seminar: New Data: Passkey Adoption in the Workforce.pptx
FIDO Alliance
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Powering Multi-Page Web Applications Using Flow Apps and FME Data Streaming
Safe Software
Techniques for Automatic Device Identification and Network Assignment.pdf
Techniques for Automatic Device Identification and Network Assignment.pdf
Priyanka Aash
9-1-1 Addressing: End-to-End Automation Using FME
9-1-1 Addressing: End-to-End Automation Using FME
Safe Software
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Seminar: Authentication for a Billion Consumers - Amazon.pptx
FIDO Alliance
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
GenAI Opportunities and Challenges - Where 370 Enterprises Are Focusing Now.pdf
Priyanka Aash
Key Requirements to Successfully Implement Generative AI in Edge DevicesOpt...
Key Requirements to Successfully Implement Generative AI in Edge DevicesOpt...
Edge AI and Vision Alliance
MuleSoft for AgentForce : Topic Center and API Catalog
MuleSoft for AgentForce : Topic Center and API Catalog
shyamraj55
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
From Manual to Auto Searching- FME in the Driver's Seat
From Manual to Auto Searching- FME in the Driver's Seat
Safe Software
cnc-processing-centers-centateq-p-110-en.pdf
cnc-processing-centers-centateq-p-110-en.pdf
AmirStern2
PyCon SG 25 - Firecracker Made Easy with Python.pdf
PyCon SG 25 - Firecracker Made Easy with Python.pdf
Muhammad Yuga Nugraha
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
Information Security Response Team Nepal_npCERT_Vice_President_Sudan_Jha.pdf
ICT Frame Magazine Pvt. Ltd.
Ad

CodeIgniter 101 Tutorial

  • 2. Index This is a tutorial with basic instructions about CodeIgniter. Its purpose is to help someone with no prior knowledge of frameworks, to understand its basic principles and how it works. Index About Frameworks About MVC Intro to CodeIgniter Controllers Routes File Models
  • 3. Frameworks Frameworks are abstract, reusable platforms where we can develop our applications. They help in writing reusable and better constructed code. Their main characteristic is the MVC (Model View Control) architecture pattern.
  • 4. MVC The MVC architecture pattern separates the representation of data from the logic of the application. The View is what the visitors of the web application see. The Controller is responsible for handling the incoming requests, validating input and showing the right view. The Model is responsible for accessing the database or executing other operations.
  • 5. MVC Controller Gets incoming requests. Displays the right View. Communicates with the model. The Controller calls the Model. Points to a View and carries data. Triggers a Controller The Model retrieves / creates the data asked and returns them to the Controller Model Queries the database. Executes operations. Gives data to controller. View What the visitors see. Html pages with PHP. Displays data from Controller
  • 6. What is CodeIgniter CodeIgniter is a PHP framework, easy to learn, suitable for beginners. It needs no extra configuration. You do not need to use the command line. It is extremely light. You dont need to learn a templating language. It is suitable for small or big projects. All in all, you just need to know some PHP to develop the applications you want.
  • 7. Intro to CodeIgniter How does a Controller trigger? Each Controller triggers by a certain URI. What happens when a Controller is triggered? It then calls a Model (if any data should be retrieved or created), it finds the View that should be shown to the visitor and then it returns that View with the corresponding data. How does CI knows what Controller to trigger? This is defined by routes. Routes is a PHP configuration file that maps each URL of our web project to a Controller and a certain function.
  • 8. Intro to CodeIgniter User enters the URI of the project CI gets the request and checks the routes file to find any matches. If a match is found, it triggers the right Controller and function. View and data is represented to the user. After the data is retrieved the Controller finds the right View and returns it. The Controller calls the right Model to retrieve / create the data needed.
  • 9. Controllers The Class A controller in CI is basically a custom made class, which inherits from the CI_Controller class. class WELCOME extends CI_Controller { } Create a controller with name welcome.php. The new controller is located into applications/controllers folder. In every controller we create, the constructor method must be declared. In the constructor we can load libraries, models, the database, create session variables and generally define content that will be used by all methods. The constructor must have the same name as the class.
  • 10. Controllers The Constructor public function WELCOME() { parent::_construct(); The first function of the controller is the constructor, where we can load $this->load->helper(url); $this->load->helper(file); the helper libraries we may need. $this->load->database(); the database of our project $this->load->model(welcome_model); } and the models we need.
  • 11. Controllers The Functions Then we can write the functions of the controller, that will be triggered by the system. The functions can either perform some operations (through the model), load a view, or even both. public function home () { if (!file_exists(application/views/home.php)){ show_404(); } $this->load->view(home); } The most usual operation is to check if a view file exists and load it. View files are located in application/views folder. Views are what the visitors see. In case it does not exist, a 404 error message is displayed to the visitor.
  • 12. Controllers The Functions public function home () { if (!file_exists(application/views/home.php)){ show_404(); } $data[files]=$this->welcome_model->get_data(); $this->load->view(home,$data); } In case we need to send some data to the view, we retrieve them by calling the right function from the model and then load them with the view. In the above example, the data is then accessible by the name files in the home view.
  • 13. Routes File The routes file contains the matches for the URIs and the Controllers / Functions. There is a default controller which is triggered from the Base URL of our project (e.g. www.my_project.com). $route[default_controller]=controller_name/function_name; So, if we try to access the www.my_project.com, the routes file understands it as the default controller and triggers the controller and function we define, e.g. the welcome controller and the home function. $route[default_controller]=welcome/home;
  • 14. Routes File There is a pattern which we have to follow in order to create mappings of URIs and controllers / functions. my_project.com/class/function/id/ The first segment is reserved for the controller class, the second for the function and the third of any values we want to pass as arguments (optional). In case we dont want to follow this pattern, the URI handler has to be reconfigured. If we want to map another URI, we have to follow that pattern. In the following example if the URI is www.my_project.com/welcome/blog, CI triggers the welcome controller and the blog method. $route[welcome/blog]=welcome/blog;
  • 15. Models Class/ Constructor In a model we perform some tasks such as execute database queries, read / write files or perform other operations. The models are located in applications/models folder. class Welcome_model extends CI_Model { Each model we create, extends from the CI_Model. public function _construct () { $this->load->database(); } At first we have to write the constructor of the model. In the constructor we load the database or other helper libraries. }
  • 16. Models - Functions class Welcome_model extends CI_Model { public function get_data() { $query=$this->db->get(.); /* perform other operations */ return $files; } } In a model function we can perform any operation we need, and then return the data to the corresponding function in the controller.
  • 17. End of tutorial The previous topics complete a basic intro into CodeIgniter and how it essentially works. CodeIgniter supports helpers, which is essentially a collection of functions in a category, for example the helper for working with files (read / write) is file and libraries as form validation. All of these can come in handy and help a lot in developing your projects. The database class of CodeIgniter supports both traditional structures as Active Records patterns. Also, someone could set up CodeIgniter to run with Doctrine (ORM), a topic that will be presented in another tutorial. For the complete CodeIgniter documentation visit here. Thank you for reading my tutorial.