SlideShare a Scribd company logo
Presenters:
Awais Hammed
Ayaz Farid Shah
Samiya Rafique
What is Framework??
A PHP framework is a basic platform that allows us to
develop web applications.
Benefits of using Framework:
 Its easy to handle the complex problems easily.
 Standardization
 Security
 Extensibility
 Fast Loading
 Reusable of code
 Increase Flexibility
Top 10 Frameworks
 Codeigniter
 Yii
 CakePHP
 Zend
 Symfony
 PHPDevShell
 Prado
 Akelos
 Zoop
 QPHP
Introduction
 PHP Web Application Frameworks
 Open Source
 Rapid Development up to 50%
 Originally Released in 2006
 Recommended by Rasmus Lerdof
Why choose codeigniter
 Light Weight
 Fast Performance
 Little Configuration
 Little Server Requirements
 Easy to Understand
 No installation Necessary
 Built in Security tools
Database Abstraction
Why use Framework (LikeCodeigniter )
Reusability
Avoid Copy/Paste
Reuse codes in multiple projects
Maintainability
Anyone can extend or edit your application
Codeigniter follow MVC
World’s best framework follows MVC Architecture
Reasons:
 Organize code
 Logics
 Application divide into(Model-View-Controller )
What should you know
 HTML
 CSS
 PHP
 MY SQL
Directory Structure
Application Folder
 Cache
 Config
 Controllers
 Core
 Helpers
 Languages
 Libraries
 Logs
 Models
 Third party
 View
Directory Structure (Cont.…)
System Folder
 Core
 Database
 Fonts
 Helpers
 Languages
 Libraries
Directory Structure (Cont.…)
User Guide Folder
 Index.html
Codeigniter Architecture
Codeigniter Classes
CI’s built-in classes contain the basic functionality that are frequently
used by web applications.
The most-used classes are 5:
 Database
 Input
 Loader
 URI
 Validation
Database Class
 Codeigniter provides a simple way to access the database.
 Generates queries using the Active Record(insert, update and
retrieve with minimal scripting ) Pattern.
 Provides method “chaining” for easy query building
 $this->db.->where(‘name’,$name);
Input Class
The Input Class serves two purposes:
 It pre-processes global input data for security.
 It provides some helper methods for fetching input data and pre-processing it.
Input Filtering
 Security Filtering
 XSS Filtering( prevent cross-site scripting attacks)
 Assessing form data
 $this->input->post();
 $this->input->get();
 $this->input->cookie();
 $this->input->server();
Loader Class(Theseelementscanbelibraries(classes))
Loader, as the name suggests, is used to load elements. These elements can
be libraries (classes) View files, Drivers, Helpers, Models, or your own files
like.
 Databases
Views
 Helpers (small php functions)
 Plugins (is a piece of software that acts as an add-on to a web browser and
gives the browser additional functionality.)
 $this->load->view(‘viewname’);
URI(UniformResourcesIdentifier) Class
The URI Class provides methods that help you retrieve information from
your URI strings.
Provides access to specific parts of the URI string.
Typically there is a one-to-one relationship between a URI string and its
corresponding controller class/method.
 $this->uri->segment(n);
Validation Class
Helps validate user form input
 Required fields
 Required string formatting (length,)
Enables success and failure messages on form submittal
form submittal
Creating Libraries
 Libraries are similar to helpers.
 You can create entirely new libraries.
 You can extend native libraries.
 You can replace native libraries.
Steps for creating a “Hello World”
program in CI
References
 PHP framework comparison benchmarks
 http://avnetlabs.com/php/php-framework-comparison-
benchmarks
 Why Should we use a PHP Framework?
 http://www.ashesh.com.np/why-should-we-use-a-php-
framework/
 CakePHP official site
 http://cakephp.org/
 CodeIgniter Site
 http://codeigniter.com
 PHP frameworks lists
 http ://www.phpframeworks.com/
 http://www.phpwact.org/pattern/model_view_co
ntroller
Ask Question:
Codeigniter

More Related Content

What's hot

Mysql2
Mysql2Mysql2
Is Drupal secure?
Is Drupal secure?Is Drupal secure?
Is Drupal secure?
Four Kitchens
 
Doing Drupal security right
Doing Drupal security rightDoing Drupal security right
Doing Drupal security right
Gábor Hojtsy
 
CRUD Operations Development
CRUD Operations DevelopmentCRUD Operations Development
CRUD Operations Development
Chen Alon
 
MySQL 简要介绍
MySQL 简要介绍MySQL 简要介绍
MySQL 简要介绍
YUCHENG HU
 
null Bangalore meet - Php Security
null Bangalore meet - Php Securitynull Bangalore meet - Php Security
null Bangalore meet - Php Security
n|u - The Open Security Community
 
Lamp
LampLamp
Drupal Security from Drupalcamp Cologne 2009
Drupal Security from Drupalcamp Cologne 2009Drupal Security from Drupalcamp Cologne 2009
Drupal Security from Drupalcamp Cologne 2009
Gábor Hojtsy
 
Security in Oracle Database
Security in Oracle DatabaseSecurity in Oracle Database
Security in Oracle Database
atousa_ahsani
 
Codeignitor
Codeignitor Codeignitor
Codeignitor
Gandhi Ravi
 
Xxe
XxeXxe
Drupal Security from Drupalcamp Bratislava
Drupal Security from Drupalcamp BratislavaDrupal Security from Drupalcamp Bratislava
Drupal Security from Drupalcamp Bratislava
Gábor Hojtsy
 
Session9-File Upload Security
Session9-File Upload SecuritySession9-File Upload Security
Session9-File Upload Security
zakieh alizadeh
 

What's hot (13)

Mysql2
Mysql2Mysql2
Mysql2
 
Is Drupal secure?
Is Drupal secure?Is Drupal secure?
Is Drupal secure?
 
Doing Drupal security right
Doing Drupal security rightDoing Drupal security right
Doing Drupal security right
 
CRUD Operations Development
CRUD Operations DevelopmentCRUD Operations Development
CRUD Operations Development
 
MySQL 简要介绍
MySQL 简要介绍MySQL 简要介绍
MySQL 简要介绍
 
null Bangalore meet - Php Security
null Bangalore meet - Php Securitynull Bangalore meet - Php Security
null Bangalore meet - Php Security
 
Lamp
LampLamp
Lamp
 
Drupal Security from Drupalcamp Cologne 2009
Drupal Security from Drupalcamp Cologne 2009Drupal Security from Drupalcamp Cologne 2009
Drupal Security from Drupalcamp Cologne 2009
 
Security in Oracle Database
Security in Oracle DatabaseSecurity in Oracle Database
Security in Oracle Database
 
Codeignitor
Codeignitor Codeignitor
Codeignitor
 
Xxe
XxeXxe
Xxe
 
Drupal Security from Drupalcamp Bratislava
Drupal Security from Drupalcamp BratislavaDrupal Security from Drupalcamp Bratislava
Drupal Security from Drupalcamp Bratislava
 
Session9-File Upload Security
Session9-File Upload SecuritySession9-File Upload Security
Session9-File Upload Security
 

Similar to Codeigniter

My Saminar On Php
My Saminar On PhpMy Saminar On Php
My Saminar On Php
Arjun Kumawat
 
Php web app security (eng)
Php web app security (eng)Php web app security (eng)
Php web app security (eng)
Anatoliy Okhotnikov
 
Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
Muhammad Hafiz Hasan
 
NNUG Certification Presentation
NNUG Certification PresentationNNUG Certification Presentation
NNUG Certification Presentation
Niall Merrigan
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
minhrau111
 
Php
PhpPhp
Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
schwebbie
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
ShahRushika
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
Commit University
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
Joram Salinas
 
Lamp Zend Security
Lamp Zend SecurityLamp Zend Security
Lamp Zend Security
Ram Srivastava
 
Ethical hacking Chapter 10 - Exploiting Web Servers - Eric Vanderburg
Ethical hacking   Chapter 10 - Exploiting Web Servers - Eric VanderburgEthical hacking   Chapter 10 - Exploiting Web Servers - Eric Vanderburg
Ethical hacking Chapter 10 - Exploiting Web Servers - Eric Vanderburg
Eric Vanderburg
 
An Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP ProgrammersAn Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP Programmers
jphl
 
Php Frameworks
Php FrameworksPhp Frameworks
Php Frameworks
Ryan Davis
 
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
cadet018
 
Windows Loves drupal
Windows Loves drupalWindows Loves drupal
Windows Loves drupal
Alessandro Pilotti
 
Windows Loves Drupal
Windows Loves DrupalWindows Loves Drupal
Windows Loves Drupal
Acquia
 
SQL Server Security - Attack
SQL Server Security - Attack SQL Server Security - Attack
SQL Server Security - Attack
webhostingguy
 
Cms an overview
Cms an overviewCms an overview
Cms an overview
kmusthu
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
Manish Bothra
 

Similar to Codeigniter (20)

My Saminar On Php
My Saminar On PhpMy Saminar On Php
My Saminar On Php
 
Php web app security (eng)
Php web app security (eng)Php web app security (eng)
Php web app security (eng)
 
Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
 
NNUG Certification Presentation
NNUG Certification PresentationNNUG Certification Presentation
NNUG Certification Presentation
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Php
PhpPhp
Php
 
Introduction To CodeIgniter
Introduction To CodeIgniterIntroduction To CodeIgniter
Introduction To CodeIgniter
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Lamp Zend Security
Lamp Zend SecurityLamp Zend Security
Lamp Zend Security
 
Ethical hacking Chapter 10 - Exploiting Web Servers - Eric Vanderburg
Ethical hacking   Chapter 10 - Exploiting Web Servers - Eric VanderburgEthical hacking   Chapter 10 - Exploiting Web Servers - Eric Vanderburg
Ethical hacking Chapter 10 - Exploiting Web Servers - Eric Vanderburg
 
An Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP ProgrammersAn Introduction to Websphere sMash for PHP Programmers
An Introduction to Websphere sMash for PHP Programmers
 
Php Frameworks
Php FrameworksPhp Frameworks
Php Frameworks
 
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
 
Windows Loves drupal
Windows Loves drupalWindows Loves drupal
Windows Loves drupal
 
Windows Loves Drupal
Windows Loves DrupalWindows Loves Drupal
Windows Loves Drupal
 
SQL Server Security - Attack
SQL Server Security - Attack SQL Server Security - Attack
SQL Server Security - Attack
 
Cms an overview
Cms an overviewCms an overview
Cms an overview
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
 

Recently uploaded

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
Nguyen Thanh Tu Collection
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
RitikBhardwaj56
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
eBook.com.bd (প্রয়োজনীয় বাংলা বই)
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
Israel Genealogy Research Association
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
Jean Carlos Nunes Paixão
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
Nicholas Montgomery
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
simonomuemu
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
Academy of Science of South Africa
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
Celine George
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
GeorgeMilliken2
 

Recently uploaded (20)

BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
BÀI TẬP BỔ TRỢ TIẾNG ANH 8 CẢ NĂM - GLOBAL SUCCESS - NĂM HỌC 2023-2024 (CÓ FI...
 
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...The simplified electron and muon model, Oscillating Spacetime: The Foundation...
The simplified electron and muon model, Oscillating Spacetime: The Foundation...
 
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdfবাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
বাংলাদেশ অর্থনৈতিক সমীক্ষা (Economic Review) ২০২৪ UJS App.pdf
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
The Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collectionThe Diamonds of 2023-2024 in the IGRA collection
The Diamonds of 2023-2024 in the IGRA collection
 
A Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdfA Independência da América Espanhola LAPBOOK.pdf
A Independência da América Espanhola LAPBOOK.pdf
 
writing about opinions about Australia the movie
writing about opinions about Australia the moviewriting about opinions about Australia the movie
writing about opinions about Australia the movie
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Smart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICTSmart-Money for SMC traders good time and ICT
Smart-Money for SMC traders good time and ICT
 
South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)South African Journal of Science: Writing with integrity workshop (2024)
South African Journal of Science: Writing with integrity workshop (2024)
 
How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17How to Fix the Import Error in the Odoo 17
How to Fix the Import Error in the Odoo 17
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
What is Digital Literacy? A guest blog from Andy McLaughlin, University of Ab...
 

Codeigniter

  • 1.
  • 3.
  • 4. What is Framework?? A PHP framework is a basic platform that allows us to develop web applications. Benefits of using Framework:  Its easy to handle the complex problems easily.  Standardization  Security  Extensibility  Fast Loading  Reusable of code  Increase Flexibility
  • 5. Top 10 Frameworks  Codeigniter  Yii  CakePHP  Zend  Symfony  PHPDevShell  Prado  Akelos  Zoop  QPHP
  • 6. Introduction  PHP Web Application Frameworks  Open Source  Rapid Development up to 50%  Originally Released in 2006  Recommended by Rasmus Lerdof
  • 7. Why choose codeigniter  Light Weight  Fast Performance  Little Configuration  Little Server Requirements  Easy to Understand  No installation Necessary  Built in Security tools Database Abstraction
  • 8. Why use Framework (LikeCodeigniter ) Reusability Avoid Copy/Paste Reuse codes in multiple projects Maintainability Anyone can extend or edit your application
  • 9. Codeigniter follow MVC World’s best framework follows MVC Architecture Reasons:  Organize code  Logics  Application divide into(Model-View-Controller )
  • 10. What should you know  HTML  CSS  PHP  MY SQL
  • 11. Directory Structure Application Folder  Cache  Config  Controllers  Core  Helpers  Languages  Libraries  Logs  Models  Third party  View
  • 12. Directory Structure (Cont.…) System Folder  Core  Database  Fonts  Helpers  Languages  Libraries
  • 13. Directory Structure (Cont.…) User Guide Folder  Index.html
  • 15. Codeigniter Classes CI’s built-in classes contain the basic functionality that are frequently used by web applications. The most-used classes are 5:  Database  Input  Loader  URI  Validation
  • 16. Database Class  Codeigniter provides a simple way to access the database.  Generates queries using the Active Record(insert, update and retrieve with minimal scripting ) Pattern.  Provides method “chaining” for easy query building  $this->db.->where(‘name’,$name);
  • 17. Input Class The Input Class serves two purposes:  It pre-processes global input data for security.  It provides some helper methods for fetching input data and pre-processing it. Input Filtering  Security Filtering  XSS Filtering( prevent cross-site scripting attacks)  Assessing form data  $this->input->post();  $this->input->get();  $this->input->cookie();  $this->input->server();
  • 18. Loader Class(Theseelementscanbelibraries(classes)) Loader, as the name suggests, is used to load elements. These elements can be libraries (classes) View files, Drivers, Helpers, Models, or your own files like.  Databases Views  Helpers (small php functions)  Plugins (is a piece of software that acts as an add-on to a web browser and gives the browser additional functionality.)  $this->load->view(‘viewname’);
  • 19. URI(UniformResourcesIdentifier) Class The URI Class provides methods that help you retrieve information from your URI strings. Provides access to specific parts of the URI string. Typically there is a one-to-one relationship between a URI string and its corresponding controller class/method.  $this->uri->segment(n);
  • 20. Validation Class Helps validate user form input  Required fields  Required string formatting (length,) Enables success and failure messages on form submittal form submittal
  • 21. Creating Libraries  Libraries are similar to helpers.  You can create entirely new libraries.  You can extend native libraries.  You can replace native libraries.
  • 22. Steps for creating a “Hello World” program in CI
  • 23. References  PHP framework comparison benchmarks  http://avnetlabs.com/php/php-framework-comparison- benchmarks  Why Should we use a PHP Framework?  http://www.ashesh.com.np/why-should-we-use-a-php- framework/  CakePHP official site  http://cakephp.org/  CodeIgniter Site  http://codeigniter.com  PHP frameworks lists  http ://www.phpframeworks.com/  http://www.phpwact.org/pattern/model_view_co ntroller