SlideShare a Scribd company logo
Codeigniter
Top 5 PHP frameworks of 2017
1. Laravel
2. Symfony
3. CodeIgniter
4. CakePHP
5. Zend Framework
Php Frameworks Version
CodeIgniter
CodeIgniter is a lightweight web application framework written in PHP that adopts
the model-view-controller approach to development
Download link: https://codeigniter.com/download
UserGuide link: https://codeigniter.com/userguide2/
Why use a framework?
Web application frameworks provide basic building blocks needed by applications
– Database connections
– Business logic
– Form handling
– Separation of concerns
– Easier testing (unit tests)
Why use CodeIgniter?
– Feature rich
– Lightweight
– Open source
– Well-supported by an active community
– Excellent “by example” documentation
– Easy to configure
– Supports multiple databases
Model-View-Controller
Model – representation of the data Model
View – rendering of the data suitable for interaction with the user.
Controller – the “traffic cop” that passes model data to the views and vice versa.
This separation of concerns allows for greater flexibility, reuse of code, and
overall preservation of the developer’s sanity
Controller
A class containing one or more related methods (custom PHP functions)
Typical uses: – Request a set of data from the model by sending arguments
– Send a payload of data to a view (web page)
– Receive a data payload from a view
– Apply business logic to make decisions
– Pass data to the model for inclusion in a database
View
Code that displays information to the user
Views can be:
– Web pages with PHP code snippets inserted
– Web pages with forms to gather user input
– Other output (CSV, PDF, etc.)
Model
A class containing one or more related (custom PHP functions) methods,
Typical uses: – Create
– Read
– Update
– Delete
CodeIgniter Classes
CI’s built-in classes contain the basic functionality that are frequently used by web
applications
The most-used classes are:
– Database
– Input
– Loader
– URI
– Validation
Database Class
– Generates queries using the Active Record Pattern
– Automatic escaping of input values
– Provides method “chaining” for easy query building
– $this->load->database(); // database class load here.
– $this->db->get(‘usermaster’); // Fetch data from usermaster table.
Input Class
Provides access to user input and other data:
– Form fields (POST)
– Cookies
– Server variables
– $this->input->post(‘fieldname’);
Loader Class
Makes various resources available:
– Databases
– Views
– Helpers
– Plugins
$this->load->view(‘viewname’);
URI Class
Provides access to specific parts of the URI string
Useful for building RESTful URIs
$this->uri->segment(n);
Validation Class
Helps validate user form input
– Required fields
– Required string formatting (length, regexp)
– Enables success and failure messages on form submittal
Other Classes
Benchmarking Calendaring
Email Encryption
File uploading FTP
HTML Table Image Manipulation
Language (internationalization) Output
Pagination Session
Trackback Unit testing
XML-RPC Zip encoding
Thanks!!!!!

More Related Content

PPTX
Mule MMC Integration with LDAP
PPT
The Elgg Social Networking Framework
PPTX
Web tier-framework-mvc
PPTX
Identity Manager Opensource OpenIDM Architecture
ODP
Case Study for CRM Application For Sales Deaprtment
PPTX
Springs_Training
PDF
JBoss_module_dependency_viewer
PPTX
Webpage mining services
Mule MMC Integration with LDAP
The Elgg Social Networking Framework
Web tier-framework-mvc
Identity Manager Opensource OpenIDM Architecture
Case Study for CRM Application For Sales Deaprtment
Springs_Training
JBoss_module_dependency_viewer
Webpage mining services

What's hot (19)

PPT
Case Study for Web Based CMS News & Media Portal
PDF
WT - Web Browser
PDF
CUST-3 Document Management with Share
PPTX
OpenIDM - An Introduction
PDF
Web application-for-financial-and-economic-data-analysis3
PPTX
Course Scheduler
PPT
Mule esb-connectors
ODP
Php.Mvc Presentation
PPT
Mule mule management console
PPTX
OpenIDM: An Introduction
PPT
Mule anypoint enterprise security
PPT
Build your silver light application
PPTX
Securing mule
PPT
2 Magma Introduction
ODP
Web 2.0 Introduction
PPT
Oracle Forms Introduction
PPTX
OPENIDM: DID YOU JUST SAAS ME?
PDF
Refined Search With Minimal Clicks Toolbar
PPTX
SharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVP
Case Study for Web Based CMS News & Media Portal
WT - Web Browser
CUST-3 Document Management with Share
OpenIDM - An Introduction
Web application-for-financial-and-economic-data-analysis3
Course Scheduler
Mule esb-connectors
Php.Mvc Presentation
Mule mule management console
OpenIDM: An Introduction
Mule anypoint enterprise security
Build your silver light application
Securing mule
2 Magma Introduction
Web 2.0 Introduction
Oracle Forms Introduction
OPENIDM: DID YOU JUST SAAS ME?
Refined Search With Minimal Clicks Toolbar
SharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVP
Ad

Similar to Codeignitor (20)

PPT
Introduction To CodeIgniter
PPTX
CodeIgniter
PPTX
CODE IGNITER
PDF
Introduction To CodeIgniter
PDF
IRJET- Lightweight MVC Framework in PHP
PDF
Folio3 - An Introduction to PHP Yii
PDF
Code igniter - A brief introduction
PPT
PHP Frameworks and CodeIgniter
PPTX
Codeigniter
PPTX
Having fun with code igniter
PPT
contentDM
PPTX
SOLID Programming with Portable Class Libraries
PPTX
Application development and emerging technologies.pptx
PPT
Codeigniter
PDF
SFScon 2020 - Nikola Milisavljevic - BASE - Python REST API framework
ZIP
Fwdtechseminars
PPTX
Codeigniter
PPTX
Introduction to Yii & performance comparison with Drupal
PDF
Codeigniter
PPTX
codeigniter
Introduction To CodeIgniter
CodeIgniter
CODE IGNITER
Introduction To CodeIgniter
IRJET- Lightweight MVC Framework in PHP
Folio3 - An Introduction to PHP Yii
Code igniter - A brief introduction
PHP Frameworks and CodeIgniter
Codeigniter
Having fun with code igniter
contentDM
SOLID Programming with Portable Class Libraries
Application development and emerging technologies.pptx
Codeigniter
SFScon 2020 - Nikola Milisavljevic - BASE - Python REST API framework
Fwdtechseminars
Codeigniter
Introduction to Yii & performance comparison with Drupal
Codeigniter
codeigniter
Ad

Recently uploaded (20)

DOCX
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
PDF
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
PPTX
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
PDF
Digital Logic Computer Design lecture notes
PDF
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
PPTX
web development for engineering and engineering
DOCX
573137875-Attendance-Management-System-original
PDF
Operating System & Kernel Study Guide-1 - converted.pdf
PDF
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
PPTX
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
PPT
introduction to datamining and warehousing
PDF
composite construction of structures.pdf
PPTX
Foundation to blockchain - A guide to Blockchain Tech
PDF
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
PDF
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
PPTX
UNIT 4 Total Quality Management .pptx
PDF
Automation-in-Manufacturing-Chapter-Introduction.pdf
PDF
Well-logging-methods_new................
PDF
Embodied AI: Ushering in the Next Era of Intelligent Systems
PPTX
Internet of Things (IOT) - A guide to understanding
ASol_English-Language-Literature-Set-1-27-02-2023-converted.docx
July 2025 - Top 10 Read Articles in International Journal of Software Enginee...
Infosys Presentation by1.Riyan Bagwan 2.Samadhan Naiknavare 3.Gaurav Shinde 4...
Digital Logic Computer Design lecture notes
SM_6th-Sem__Cse_Internet-of-Things.pdf IOT
web development for engineering and engineering
573137875-Attendance-Management-System-original
Operating System & Kernel Study Guide-1 - converted.pdf
Mitigating Risks through Effective Management for Enhancing Organizational Pe...
FINAL REVIEW FOR COPD DIANOSIS FOR PULMONARY DISEASE.pptx
introduction to datamining and warehousing
composite construction of structures.pdf
Foundation to blockchain - A guide to Blockchain Tech
TFEC-4-2020-Design-Guide-for-Timber-Roof-Trusses.pdf
keyrequirementskkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkkk
UNIT 4 Total Quality Management .pptx
Automation-in-Manufacturing-Chapter-Introduction.pdf
Well-logging-methods_new................
Embodied AI: Ushering in the Next Era of Intelligent Systems
Internet of Things (IOT) - A guide to understanding

Codeignitor

  • 2. Top 5 PHP frameworks of 2017 1. Laravel 2. Symfony 3. CodeIgniter 4. CakePHP 5. Zend Framework
  • 4. CodeIgniter CodeIgniter is a lightweight web application framework written in PHP that adopts the model-view-controller approach to development Download link: https://codeigniter.com/download UserGuide link: https://codeigniter.com/userguide2/
  • 5. Why use a framework? Web application frameworks provide basic building blocks needed by applications – Database connections – Business logic – Form handling – Separation of concerns – Easier testing (unit tests)
  • 6. Why use CodeIgniter? – Feature rich – Lightweight – Open source – Well-supported by an active community – Excellent “by example” documentation – Easy to configure – Supports multiple databases
  • 7. Model-View-Controller Model – representation of the data Model View – rendering of the data suitable for interaction with the user. Controller – the “traffic cop” that passes model data to the views and vice versa. This separation of concerns allows for greater flexibility, reuse of code, and overall preservation of the developer’s sanity
  • 8. Controller A class containing one or more related methods (custom PHP functions) Typical uses: – Request a set of data from the model by sending arguments – Send a payload of data to a view (web page) – Receive a data payload from a view – Apply business logic to make decisions – Pass data to the model for inclusion in a database
  • 9. View Code that displays information to the user Views can be: – Web pages with PHP code snippets inserted – Web pages with forms to gather user input – Other output (CSV, PDF, etc.)
  • 10. Model A class containing one or more related (custom PHP functions) methods, Typical uses: – Create – Read – Update – Delete
  • 11. CodeIgniter Classes CI’s built-in classes contain the basic functionality that are frequently used by web applications The most-used classes are: – Database – Input – Loader – URI – Validation
  • 12. Database Class – Generates queries using the Active Record Pattern – Automatic escaping of input values – Provides method “chaining” for easy query building – $this->load->database(); // database class load here. – $this->db->get(‘usermaster’); // Fetch data from usermaster table.
  • 13. Input Class Provides access to user input and other data: – Form fields (POST) – Cookies – Server variables – $this->input->post(‘fieldname’);
  • 14. Loader Class Makes various resources available: – Databases – Views – Helpers – Plugins $this->load->view(‘viewname’);
  • 15. URI Class Provides access to specific parts of the URI string Useful for building RESTful URIs $this->uri->segment(n);
  • 16. Validation Class Helps validate user form input – Required fields – Required string formatting (length, regexp) – Enables success and failure messages on form submittal
  • 17. Other Classes Benchmarking Calendaring Email Encryption File uploading FTP HTML Table Image Manipulation Language (internationalization) Output Pagination Session Trackback Unit testing XML-RPC Zip encoding