SlideShare a Scribd company logo
1 of 18
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

What's hot

Case Study for Web Based CMS News & Media Portal
Case Study for Web Based CMS News & Media PortalCase Study for Web Based CMS News & Media Portal
Case Study for Web Based CMS News & Media PortalMike Taylor
 
WT - Web Browser
WT - Web BrowserWT - Web Browser
WT - Web Browservinay arora
 
CUST-3 Document Management with Share
CUST-3 Document Management with ShareCUST-3 Document Management with Share
CUST-3 Document Management with ShareAlfresco Software
 
OpenIDM - An Introduction
OpenIDM - An IntroductionOpenIDM - An Introduction
OpenIDM - An IntroductionForgeRock
 
Web application-for-financial-and-economic-data-analysis3
Web application-for-financial-and-economic-data-analysis3Web application-for-financial-and-economic-data-analysis3
Web application-for-financial-and-economic-data-analysis3Mike Taylor
 
Course Scheduler
Course SchedulerCourse Scheduler
Course Schedulerjrmoransv
 
Mule esb-connectors
Mule esb-connectorsMule esb-connectors
Mule esb-connectorshimajareddys
 
Mule mule management console
Mule  mule management consoleMule  mule management console
Mule mule management consoleD.Rajesh Kumar
 
OpenIDM: An Introduction
OpenIDM: An IntroductionOpenIDM: An Introduction
OpenIDM: An IntroductionForgeRock
 
Mule anypoint enterprise security
Mule  anypoint enterprise securityMule  anypoint enterprise security
Mule anypoint enterprise securityD.Rajesh Kumar
 
Build your silver light application
Build your silver light applicationBuild your silver light application
Build your silver light applicationPranay Rana
 
Securing mule
Securing   muleSecuring   mule
Securing muleSindhu VL
 
2 Magma Introduction
2 Magma Introduction2 Magma Introduction
2 Magma Introductionvegamario
 
Oracle Forms Introduction
Oracle Forms IntroductionOracle Forms Introduction
Oracle Forms IntroductionSekhar Byna
 
OPENIDM: DID YOU JUST SAAS ME?
OPENIDM: DID YOU JUST SAAS ME?OPENIDM: DID YOU JUST SAAS ME?
OPENIDM: DID YOU JUST SAAS ME?ForgeRock
 
SharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVP
SharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVPSharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVP
SharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVPAyman El-Hattab
 

What's hot (19)

Case Study for Web Based CMS News & Media Portal
Case Study for Web Based CMS News & Media PortalCase Study for Web Based CMS News & Media Portal
Case Study for Web Based CMS News & Media Portal
 
WT - Web Browser
WT - Web BrowserWT - Web Browser
WT - Web Browser
 
CUST-3 Document Management with Share
CUST-3 Document Management with ShareCUST-3 Document Management with Share
CUST-3 Document Management with Share
 
OpenIDM - An Introduction
OpenIDM - An IntroductionOpenIDM - An Introduction
OpenIDM - An Introduction
 
Web application-for-financial-and-economic-data-analysis3
Web application-for-financial-and-economic-data-analysis3Web application-for-financial-and-economic-data-analysis3
Web application-for-financial-and-economic-data-analysis3
 
Course Scheduler
Course SchedulerCourse Scheduler
Course Scheduler
 
Mule esb-connectors
Mule esb-connectorsMule esb-connectors
Mule esb-connectors
 
Php.Mvc Presentation
Php.Mvc PresentationPhp.Mvc Presentation
Php.Mvc Presentation
 
Mule mule management console
Mule  mule management consoleMule  mule management console
Mule mule management console
 
OpenIDM: An Introduction
OpenIDM: An IntroductionOpenIDM: An Introduction
OpenIDM: An Introduction
 
Mule anypoint enterprise security
Mule  anypoint enterprise securityMule  anypoint enterprise security
Mule anypoint enterprise security
 
Build your silver light application
Build your silver light applicationBuild your silver light application
Build your silver light application
 
Securing mule
Securing   muleSecuring   mule
Securing mule
 
2 Magma Introduction
2 Magma Introduction2 Magma Introduction
2 Magma Introduction
 
Web 2.0 Introduction
Web 2.0 IntroductionWeb 2.0 Introduction
Web 2.0 Introduction
 
Oracle Forms Introduction
Oracle Forms IntroductionOracle Forms Introduction
Oracle Forms Introduction
 
OPENIDM: DID YOU JUST SAAS ME?
OPENIDM: DID YOU JUST SAAS ME?OPENIDM: DID YOU JUST SAAS ME?
OPENIDM: DID YOU JUST SAAS ME?
 
Refined Search With Minimal Clicks Toolbar
Refined Search With Minimal Clicks ToolbarRefined Search With Minimal Clicks Toolbar
Refined Search With Minimal Clicks Toolbar
 
SharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVP
SharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVPSharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVP
SharePoint 2010 Web Application Architecture_ Ayman El-Hattab,MVP
 

Similar to Codeignitor

Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniterschwebbie
 
IRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHPIRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHPIRJET Journal
 
Folio3 - An Introduction to PHP Yii
Folio3 - An Introduction to PHP YiiFolio3 - An Introduction to PHP Yii
Folio3 - An Introduction to PHP YiiFolio3 Software
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introductionCommit University
 
PHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterPHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterKHALID C
 
Having fun with code igniter
Having fun with code igniterHaving fun with code igniter
Having fun with code igniterAhmad Arif
 
SOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class LibrariesSOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class LibrariesVagif Abilov
 
Application development and emerging technologies.pptx
Application development and emerging technologies.pptxApplication development and emerging technologies.pptx
Application development and emerging technologies.pptxMichael Angelo Marasigan
 
SFScon 2020 - Nikola Milisavljevic - BASE - Python REST API framework
SFScon 2020 - Nikola Milisavljevic - BASE - Python REST API frameworkSFScon 2020 - Nikola Milisavljevic - BASE - Python REST API framework
SFScon 2020 - Nikola Milisavljevic - BASE - Python REST API frameworkSouth Tyrol Free Software Conference
 
Introduction to Yii & performance comparison with Drupal
Introduction to Yii & performance comparison with DrupalIntroduction to Yii & performance comparison with Drupal
Introduction to Yii & performance comparison with Drupalcadet018
 

Similar to Codeignitor (20)

Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
 
CodeIgniter
CodeIgniterCodeIgniter
CodeIgniter
 
CODE IGNITER
CODE IGNITERCODE IGNITER
CODE IGNITER
 
Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
 
IRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHPIRJET- Lightweight MVC Framework in PHP
IRJET- Lightweight MVC Framework in PHP
 
Folio3 - An Introduction to PHP Yii
Folio3 - An Introduction to PHP YiiFolio3 - An Introduction to PHP Yii
Folio3 - An Introduction to PHP Yii
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
 
PHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterPHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniter
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Having fun with code igniter
Having fun with code igniterHaving fun with code igniter
Having fun with code igniter
 
contentDM
contentDMcontentDM
contentDM
 
SOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class LibrariesSOLID Programming with Portable Class Libraries
SOLID Programming with Portable Class Libraries
 
Application development and emerging technologies.pptx
Application development and emerging technologies.pptxApplication development and emerging technologies.pptx
Application development and emerging technologies.pptx
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
SFScon 2020 - Nikola Milisavljevic - BASE - Python REST API framework
SFScon 2020 - Nikola Milisavljevic - BASE - Python REST API frameworkSFScon 2020 - Nikola Milisavljevic - BASE - Python REST API framework
SFScon 2020 - Nikola Milisavljevic - BASE - Python REST API framework
 
Fwdtechseminars
FwdtechseminarsFwdtechseminars
Fwdtechseminars
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Introduction to Yii & performance comparison with Drupal
Introduction to Yii & performance comparison with DrupalIntroduction to Yii & performance comparison with Drupal
Introduction to Yii & performance comparison with Drupal
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
codeigniter
codeignitercodeigniter
codeigniter
 

Recently uploaded

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...Chandu841456
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction managementMariconPadriquez1
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionDr.Costas Sachpazis
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)dollysharma2066
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024Mark Billinghurst
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.eptoze12
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxk795866
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx959SahilShah
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfAsst.prof M.Gokilavani
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxbritheesh05
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AIabhishek36461
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 

Recently uploaded (20)

An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...An experimental study in using natural admixture as an alternative for chemic...
An experimental study in using natural admixture as an alternative for chemic...
 
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
🔝9953056974🔝!!-YOUNG call girls in Rajendra Nagar Escort rvice Shot 2000 nigh...
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
computer application and construction management
computer application and construction managementcomputer application and construction management
computer application and construction management
 
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Serviceyoung call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
young call girls in Rajiv Chowk🔝 9953056974 🔝 Delhi escort Service
 
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective IntroductionSachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
Sachpazis Costas: Geotechnical Engineering: A student's Perspective Introduction
 
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
Call Us ≽ 8377877756 ≼ Call Girls In Shastri Nagar (Delhi)
 
IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024IVE Industry Focused Event - Defence Sector 2024
IVE Industry Focused Event - Defence Sector 2024
 
Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.Oxy acetylene welding presentation note.
Oxy acetylene welding presentation note.
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
Introduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptxIntroduction-To-Agricultural-Surveillance-Rover.pptx
Introduction-To-Agricultural-Surveillance-Rover.pptx
 
Application of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptxApplication of Residue Theorem to evaluate real integrations.pptx
Application of Residue Theorem to evaluate real integrations.pptx
 
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdfCCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
CCS355 Neural Network & Deep Learning Unit II Notes with Question bank .pdf
 
Artificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptxArtificial-Intelligence-in-Electronics (K).pptx
Artificial-Intelligence-in-Electronics (K).pptx
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Design and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdfDesign and analysis of solar grass cutter.pdf
Design and analysis of solar grass cutter.pdf
 
Past, Present and Future of Generative AI
Past, Present and Future of Generative AIPast, Present and Future of Generative AI
Past, Present and Future of Generative AI
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptxExploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
Exploring_Network_Security_with_JA3_by_Rakesh Seal.pptx
 
young call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Serviceyoung call girls in Green Park🔝 9953056974 🔝 escort Service
young call girls in Green Park🔝 9953056974 🔝 escort Service
 

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