CodeIgniter
-
Upload
pradip-kharbuja -
Category
Technology
-
view
2.177 -
download
1
Transcript of CodeIgniter
CodeIgniter
- A Fully Baked PHP Framework
Pradip Kharbuja (551212591)
M.Sc.(IT) 4th Sem
College for Professional Studies
25th November, 2013
Overview
Welcome to CodeIgniter (CI)
CodeIgniter is Right for You if…
CodeIgniter at a Glance
Design and Architectural Goals
CodeIgniter Features
Model-View-Controller
Application Flow Chart
Controllers
Views
Models
Reserved Names
Welcome to CodeIgniter (CI)
CodeIgniter is an Application Development Framework for people who
build web sites using PHP.
CodeIgniter is a powerful PHP framework with a very small footprint.
It is powering the next generation of web apps.
Its goal is to enable you to develop projects much faster than from
scratch.
CodeIgniter lets you creatively focus on your project by minimizing the
amount of code needed for a given task.
CodeIgniter is Right for You if…
You want a framework with a small footprint.
You need clear, thorough documentation.
You prefer nearly zero configuration.
You don't want to adhere to restrictive coding rules.
You don't want to learn another template language.
You prefer simple solutions to complexity.
CodeIgniter at a Glance
CodeIgniter is Free
CodeIgniter is Light Weight & Fast
CodeIgniter Uses M-V-C
CodeIgniter Generates Clean URLs
CodeIgniter is Extensible
CodeIgniter is Thoroughly Documented
CodeIgniter has a Friendly Community of Users
Design and Architectural Goals
maximum performance
capability
flexibility in the smallest, lightest possible package.
CodeIgniter Features
Model-View-Controller Based System
Extremely Light Weight
Full Featured database classes with
support for several platforms.
Form and Data Validation
Security and XSS Filtering
Session Management
Email Sending Class
Image Manipulation Library
File Uploading Class
Pagination
Data Encryption
Error Logging
Calendar Class
Template Engine Class
Unit Testing Class
Search-engine Friendly URLs
Flexible URI Routing
Support for Hooks and Class Extensions
Large library of "helper" functions
Controllers
A Controller is simply a class file that is named in a way that can be
associated with a URI.
e.g. example.com/index.php/blog/
Views
A view is simply a web page, or a page fragment, like a header, footer,
sidebar, etc.
Views are never called directly, they must be loaded by a controller.
e.g. $this->load->view('view_name');
CodeIgniter can intelligently handle multiple calls to load multiple views.
CodeIgniter can also return views as data.
e.g. $string = $this->load->view('myfile', '', true);
Models
Models are PHP classes that are designed to work with information in
your database.
A model class contains functions to insert, update, and retrieve data.
Reserved Names
Controller names
1. Controller
2. CI_Base
3. _ci_initialize
4. Default
5. index
Functions
1. is_really_writable()
2. load_class()
3. get_config()
4. show_error()
5. show_404()
6. log_message()
7. get_instance()
Variables
1. $config
2. $mimes
3. $lang
Constants
1. ENVIRONMENT
2. CI_VERSION
References
• http://ellislab.com/codeigniter
• http://stackoverflow.com/questions/1618065/what-is-meaning-of-small-
footprint-in-terms-of-programming
• http://ellislab.com/forums/
CodeIgniter
Any Questions ?
Thank you!
http://ellislab.com/codeigniter/user-guide/