SlideShare a Scribd company logo
Introduction To CodeIgniter Mohammad Amzad Hossain Softwork Solutions [email_address]
Prerequisite OOP – Object Oriented Programming PHP MySQL
Index Introduction Evolution Of Web Development Basic Idea Of Web Framework Why Framework not Scratch?  MVC ( Model View Controller) Architecture What is CodeIgniter ???? Installation of CodeIgniter Application Flow of CodeIgniter CodeIgniter URL Controllers Views Models CodeIgniter Libraries Helpers A Basic Application Development Of Codeigniter Application Flow Q/A Reference
Evolution of Web Development How you first started building websites.

Recommended for you

Having fun with code igniter
Having fun with code igniterHaving fun with code igniter
Having fun with code igniter

This document provides an overview and introduction to the CodeIgniter web application framework. It discusses what a framework is, describes CodeIgniter and why it may be used, explains its MVC architecture and built-in classes, and provides steps to get started with CodeIgniter including creating controllers, views, models, and using helpers and plugins.

frameworkfungambite
Introduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniterIntroduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniter

This document introduces the MVC web framework CodeIgniter. It defines what a framework is and explains that frameworks provide a general application structure and handle common tasks, while libraries are used by code. The document then defines the MVC pattern, which separates business logic from presentation logic into the Model, View and Controller components. It provides examples of each component and how MVC is used for web applications. Finally, it proposes building a simple blog application using CodeIgniter to demonstrate MVC and the framework.

Introduction to CodeIgniter
Introduction to CodeIgniterIntroduction to CodeIgniter
Introduction to CodeIgniter

This document discusses PHP frameworks and CodeIgniter in particular. It provides an overview of PHP frameworks, listing popular options like Zend, CodeIgniter, Symfony and Laravel. It then focuses on CodeIgniter, highlighting its small footprint, clear documentation and ease of use with MVC frameworks. CodeIgniter resources like documentation, forums and tutorials are listed. Finally, it provides an example of using MVC with CodeIgniter by building a controller, model and view to count frogs in a database table.

phpcodeigniter
Evolution of Web Development How you’re building websites now.
Evolution of Web Development How you build websites with a framework
Basic Idea Of Web Framework A web application framework  Is a Software framework  Designed to support the development of  Dynamic websites Web applications Web services Aims to alleviate the overhead associated with common activities used in Web development.  Libraries for database access Templating frameworks Session management Often promote code reuse Many more  …….
Why Framework Not Scratch ?  Key Factors of a Development Interface Design  Business Logic  Database Manipulation User Access Control Advantage of Framework  Templating Provide Solutions to Common problems Abstract Levels of functionality Make Rapid Development Easier Disadvantage of Scratch Development Make your own Abstract Layer  Solve Common Problems Yourself The more Typing Speed the more faster

Recommended for you

Codeigniter Introduction
Codeigniter IntroductionCodeigniter Introduction
Codeigniter Introduction

CodeIgniter is a PHP web application framework that focuses on minimizing code for common tasks. It was created in response to documentation issues and complexity in other frameworks. CodeIgniter sees popularity due to its lightweight nature, active record database support, and ease of use through features like form validation and file uploading. It follows an MVC architecture and has a large user community. While flexible and customizable, it lacks some object orientation and has irregular release cycles.

php frameworkcodeigniter
Progressive EPiServer Development
Progressive EPiServer DevelopmentProgressive EPiServer Development
Progressive EPiServer Development

Alternative ways of developing web sites using EPiServer CMS. An introduction to three open source frameworks that allow us to better tackle complexity, have a more enjoyable development experience and deliver better, well tested sites using EPiServer CMS.

episervervlssigepiserver cms
Yii Introduction
Yii IntroductionYii Introduction
Yii Introduction

The document provides an overview of the Yii PHP framework, including its core components and features such as MVC architecture, database access, caching, authentication, theming, logging, error handling, and web services. Key sections summarize the entry script, application, controller, model, view, and component classes that make up the framework. Other sections cover basics like creating an application, working with databases and displaying data, as well as more advanced topics such as caching, URL management, and performance tuning.

march2009dpug
MVC Architecture Separates User Interface From Business Logic Model - Encapsulates core application data and functionality Business Logic. View - obtains data from the model and presents it to the user. Controller - receives and translates input to requests on the model or the view Figure :  01
What is CodeIgniter ??? An Open Source Web Application Framework  Nearly Zero Configuration MVC ( Model View Controller ) Architecture Multiple DB (Database) support DB Objects Templating Caching Modules Validation Rich Sets of Libraries for Commonly Needed Tasks Has a Clear, Thorough documentation
Installation of CodeIgniter Requirments Web Server -  Download & Install Apache PHP – 4.3.2 or Higher Database – MySQL ( support for other DB exists ) Installation  Download the latest version from  www.codeigniter.com  and unzip into your web root directory. Open  “application/config/config.php” and change base_url value to base url. For example:  http://localhost/myci/ To Use Database open “application/config/database.php” and change necessary values. Usually you have to change:  ‘hostname’, ‘username’, ‘password’, ‘datbase’. Start Your Web Server and Database Server and go to  http:// localhot/myci
Application Flow Of CodeIgniter Figure :  2  [ Application Flow of CodeIgniter]

Recommended for you

Mainframe, the fast PHP framework
Mainframe, the fast PHP frameworkMainframe, the fast PHP framework
Mainframe, the fast PHP framework

This document provides an overview of MainframePHP, a PHP framework based on CodeIgniter. It discusses Mainframe's focus on web apps and inclusion of popular open source tools. The speaker then covers several case studies that use Mainframe, how Mainframe improves productivity over CodeIgniter, its performance capabilities even on low-powered servers, ease of learning for new developers familiar with CodeIgniter, its theme system, asset management features, plugin support via HMVC, and organization of libraries.

phpcodeigniterweb
yii1
yii1yii1
yii1

Yii is a high-performance PHP framework that is easy to install, offers security features like access control and role-based access control, and supports internationalization and lazy loading for improved performance. It uses the model-view-controller pattern and allows automatic code generation via Gii. Yii is open-source and free to use.

ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015

An overall overview of Microsoft ASP.NET MVC Framework using C# Language and Entity Framework in Visual Studio 2015

mvcentityframeworkasp.net
CodeIgniter URL URL in CodeIgniter is Segment Based. Segments in a URI  CodeIgniter Optionally Supports Query String URL  www.your-site.com/ news / article / my_article www.your-site.com/ class / function / ID www.your-site.com/index.php? c=news & m=article & ID=345
Controllers A Class file resides under “application/controllers” www.your-site.com/index.php/ first <?php class  First  extends Controller{ function First() { parent::Controller(); } function  index () { echo “<h1> Hello CUET !! </h1> “; } } ?> // Output Will be “Hello CUET!!” Note: Class names must start with an Uppercase Letter. In case of “constructor” you must use “parent::Controller();”
Controllers In This Particular Code <?php class First extends Controller{ function index() { echo “<h1> Hello CUET !! </h1> “; } function  bdosdn ( $location ) { echo “<h2> Hello $location !! </h2>”; } } ?> // Output Will be “Hello world !!” www.your-site.com/index.php/ first / bdosdn/ world Note: The ‘Index’ Function always loads by default. Unless there is a second segment in the URL
VIEWS A Webpage or A page Fragment Should be placed under “application/views” Never Called Directly <html> <title> My First CodeIgniter Project</title> <body> <h1> Welcome ALL … To My .. ::: First Project ::: . . . </h1> </body> </html> web_root/myci/system/application/views/myview.php

Recommended for you

MVC - Introduction
MVC - IntroductionMVC - Introduction
MVC - Introduction

The document discusses design patterns and the Model-View-Controller (MVC) architectural pattern. It describes the 23 Gang of Four design patterns categorized into creational, structural, and behavioral patterns. It then explains the MVC pattern, how it separates an application into the model, view, and controller components, and the typical request flow from request to response. Finally, it provides a brief history of ASP.NET MVC and the technologies used in ASP.NET MVC development.

Getting started with angular js
Getting started with angular jsGetting started with angular js
Getting started with angular js

There are lots of libraries and frameworks you can use when building browser based JavaScript applications. Probably the most popular library is jQuery. But while jQuery makes it easy to write cross browser user interface code that manipulates the DOM it’s UI focus makes it less then perfect for large business applications. One of the JavaScript based MVC frameworks that has been gaining a lot of popularity for creating business applications is AngularJS. Wen using AngularJS you get the benefit of a powerful data-binding framework that guides you towards a proper application model with a proper separation between the UI layer and the business layer. It also contains a powerful dependency injection framework making code much more testable than before. In this session Maurice de Beijer will show you how to get started with AngularJS and how productive you can be when creating line of business applications.

angularjslidnug
Mvc4
Mvc4Mvc4
Mvc4

Presentation explaining asp.net MVC4 including what's new, explaining how it works and finally implementing a real world application.

asp.netmvcmvc4
VIEWS Calling a VIEW from Controller Data Passing to a VIEW from Controller $this->load->view(‘myview’); function index() { $var = array( ‘ full_name’ => ‘Amzad Hossain’, ‘ email’ => ‘tohi1000@yahoo.com’ ); $this->load->view(‘myview’, $var); } <html> <title> ..::Personal Info::.. </title> <body> Full Name :  <?php echo $full_name;?>  <br /> E-mail  :  <?=email;?>  <br /> </body> </html>
VIEWS There are 3 mechanism that can be utilize to show Dynamic Data inside a VIEW File -  Pure PHP -  PHP’s Alternative Syntax -  CodeIgniter’s Template Engine  <?php if( $for_this == true ):?> <h1> For This </h1> <?php elseif( $for_that == true ): ?> <h1> For That </h1> <?php else: ?> <h1> What </h1> <?php endif; ?> Note: There are other alternative syntax ‘for’, ‘foreach’, ‘while’
Models Designed to work with Information of Database Models Should be placed Under “application/models/” Loading a Model inside a Controller <?php  class  Mymodel  extend Model{ function Mymodel() { parent::Model(); } function  get_info () { $query = $this->db->get(‘name’, 10);  /*Using ActiveRecord*/ return $query->result(); } } ?> $this->load->model(‘mymodel’); $data = $this->mymodel->get_info();
CodeIgniter Libraries Special Purpose Classes Loading CodeIgniter Library Benchmarking Database Encryption Calendaring FTP Table File Uploading Email Image Manipulation Pagination Input and Security HTML Trackback Parser Session Template Unit Testing User Agent URI Validation $this->load->library(‘database’);

Recommended for you

MVC 6 Introduction
MVC 6 IntroductionMVC 6 Introduction
MVC 6 Introduction

The document discusses design patterns and architectural patterns, specifically focusing on the model-view-controller (MVC) pattern. It provides an overview of MVC, explaining the model, view, and controller components. It then describes how MVC is implemented in ASP.NET MVC, including the request flow and separation of concerns. Some key benefits of ASP.NET MVC like clean URLs, testability, and extensibility are also summarized.

yii framework
yii frameworkyii framework
yii framework

Yii is a PHP framework that follows the model-view-controller (MVC) design pattern. It aims to separate business logic from user interfaces to allow each part to be developed and changed independently. The framework provides models to manage data and business rules, views to contain user interface elements, and controllers to link models and views. Yii was created based on other frameworks like Ruby on Rails, PRADO, and jQuery to provide a high-performance PHP framework for developing large-scale web applications.

Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview

This document outlines the modules and content covered in an ASP.NET MVC 5 course. The 10 modules cover an overview of MVC, models, controllers, views, security, routing, performance, testing, Web API integration. The agenda includes introductions to MVC architecture, comparisons to Web Forms, project structure, configuration, a demo app, best practices, and homework. Real app showcasing and references are also provided.

.netwebasp.net
CodeIgniter Libraries Database Library Abstract Database Class support traditional structures and Active Record Pattern. Active Record Pattern General Approach function index() { $this->load->library(‘database’); $rslt =  $this->db->query (“ select first_name from user_name ”); foreach(  $rslt->result()  as $row_data)  echo  $row_data->first_name  . “<br />”; } function index() { $this->load->library(‘database’); $this->db->select(“first_name”); $rslt =  $this->db->get (“ user_name ”); foreach(  $rslt->result()  as $row_data)  echo  $row_data->first_name  . “<br />”; }
Helpers Simply a collection of functions in a particular category. Loading A Helper Inside a Controller Array Date File HTML Smiley Text URL Cookie Download Form Security String Directory E-mail Inflector XML Parser Typography $this->load->helper(‘helper_name’); $this->load->helper(array(‘form’,’url’) );
Helpers Form Helper form_open() form_open_multipart() form_input() form_textarea() form_checkbox() form_submit() form_close() URL Helper site_url() base_url() anchor() anchor_popup() mailto()
A Personal Blog Using CI

Recommended for you

Beautiful REST and JSON APIs - Les Hazlewood
Beautiful REST and JSON APIs - Les HazlewoodBeautiful REST and JSON APIs - Les Hazlewood
Beautiful REST and JSON APIs - Les Hazlewood

Designing a really clean and intuitive REST + JSON API is no small feat. You have to worry about resources, collections of resources, pagination, query parameters, references to other resources, which HTTP Methods to use, HTTP Caching, security, and more! And you have to make sure it lasts and doesn't break clients as you add features over time. Further, while there are many references on creating REST APIs with XML, there are many fewer references for REST + JSON.

xmlresthttp caching
Yii php framework_honey
Yii php framework_honeyYii php framework_honey
Yii php framework_honey

The document discusses the Yii PHP framework. It provides an overview of Yii's fundamentals including its use of the MVC pattern, entry scripts, debug mode, applications, controllers, actions, filters, models, views, layouts, and widgets. It also summarizes how to create a basic Yii application, the code generation tools, and some key features such as database access, forms/validation, authentication, caching, and automatic code generation.

freewareframeworkphp
CodeIgniter PHP MVC Framework
CodeIgniter PHP MVC FrameworkCodeIgniter PHP MVC Framework
CodeIgniter PHP MVC Framework

The document discusses CodeIgniter, an open source PHP MVC framework, and provides information about CodeIgniter features such as controllers, models, views, helpers, libraries, and working with databases using CodeIgniter's active record functions. It also covers topics like installing CodeIgniter, creating controllers and models, and loading views, helpers, and libraries.

frameworkphpmvc
Questions  &  Answers
Useful Links www.codeigniter.com http://codeigniter.com/wiki/Summary_of_Resources_Libraries_Helpers_Plugins.../
Reference User Guide of CodeIgniter 1.6.1 Wikipedia PHPit Slideshare

More Related Content

What's hot

CodeIgniter 101 Tutorial
CodeIgniter 101 TutorialCodeIgniter 101 Tutorial
CodeIgniter 101 Tutorial
Konstantinos Magarisiotis
 
Modular PHP Development using CodeIgniter Bonfire
Modular PHP Development using CodeIgniter BonfireModular PHP Development using CodeIgniter Bonfire
Modular PHP Development using CodeIgniter Bonfire
Jeff Fox
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
Commit University
 
Having fun with code igniter
Having fun with code igniterHaving fun with code igniter
Having fun with code igniter
Ahmad Arif
 
Introduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniterIntroduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniter
Pongsakorn U-chupala
 
Introduction to CodeIgniter
Introduction to CodeIgniterIntroduction to CodeIgniter
Introduction to CodeIgniter
Piti Suwannakom
 
Codeigniter Introduction
Codeigniter IntroductionCodeigniter Introduction
Codeigniter Introduction
Ashfan Ahamed
 
Progressive EPiServer Development
Progressive EPiServer DevelopmentProgressive EPiServer Development
Progressive EPiServer Development
joelabrahamsson
 
Yii Introduction
Yii IntroductionYii Introduction
Yii Introduction
Jason Ragsdale
 
Mainframe, the fast PHP framework
Mainframe, the fast PHP frameworkMainframe, the fast PHP framework
Mainframe, the fast PHP framework
bibakis
 
yii1
yii1yii1
ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015
Hossein Zahed
 
MVC - Introduction
MVC - IntroductionMVC - Introduction
MVC - Introduction
Sudhakar Sharma
 
Getting started with angular js
Getting started with angular jsGetting started with angular js
Getting started with angular js
Maurice De Beijer [MVP]
 
Mvc4
Mvc4Mvc4
MVC 6 Introduction
MVC 6 IntroductionMVC 6 Introduction
MVC 6 Introduction
Sudhakar Sharma
 
yii framework
yii frameworkyii framework
yii framework
Akhil Kumar
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
Sergey Seletsky
 
Beautiful REST and JSON APIs - Les Hazlewood
Beautiful REST and JSON APIs - Les HazlewoodBeautiful REST and JSON APIs - Les Hazlewood
Beautiful REST and JSON APIs - Les Hazlewood
jaxconf
 
Yii php framework_honey
Yii php framework_honeyYii php framework_honey
Yii php framework_honey
Honeyson Joseph
 

What's hot (20)

CodeIgniter 101 Tutorial
CodeIgniter 101 TutorialCodeIgniter 101 Tutorial
CodeIgniter 101 Tutorial
 
Modular PHP Development using CodeIgniter Bonfire
Modular PHP Development using CodeIgniter BonfireModular PHP Development using CodeIgniter Bonfire
Modular PHP Development using CodeIgniter Bonfire
 
Code igniter - A brief introduction
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
 
Having fun with code igniter
Having fun with code igniterHaving fun with code igniter
Having fun with code igniter
 
Introduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniterIntroduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniter
 
Introduction to CodeIgniter
Introduction to CodeIgniterIntroduction to CodeIgniter
Introduction to CodeIgniter
 
Codeigniter Introduction
Codeigniter IntroductionCodeigniter Introduction
Codeigniter Introduction
 
Progressive EPiServer Development
Progressive EPiServer DevelopmentProgressive EPiServer Development
Progressive EPiServer Development
 
Yii Introduction
Yii IntroductionYii Introduction
Yii Introduction
 
Mainframe, the fast PHP framework
Mainframe, the fast PHP frameworkMainframe, the fast PHP framework
Mainframe, the fast PHP framework
 
yii1
yii1yii1
yii1
 
ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015
 
MVC - Introduction
MVC - IntroductionMVC - Introduction
MVC - Introduction
 
Getting started with angular js
Getting started with angular jsGetting started with angular js
Getting started with angular js
 
Mvc4
Mvc4Mvc4
Mvc4
 
MVC 6 Introduction
MVC 6 IntroductionMVC 6 Introduction
MVC 6 Introduction
 
yii framework
yii frameworkyii framework
yii framework
 
Asp.net mvc 5 course module 1 overview
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
 
Beautiful REST and JSON APIs - Les Hazlewood
Beautiful REST and JSON APIs - Les HazlewoodBeautiful REST and JSON APIs - Les Hazlewood
Beautiful REST and JSON APIs - Les Hazlewood
 
Yii php framework_honey
Yii php framework_honeyYii php framework_honey
Yii php framework_honey
 

Viewers also liked

CodeIgniter PHP MVC Framework
CodeIgniter PHP MVC FrameworkCodeIgniter PHP MVC Framework
CodeIgniter PHP MVC Framework
Bo-Yi Wu
 
โครงงาน Airlink เพื่อการศึกษา
โครงงาน Airlink เพื่อการศึกษาโครงงาน Airlink เพื่อการศึกษา
โครงงาน Airlink เพื่อการศึกษา
พัน พัน
 
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
Tũi Wichets
 
Php and database functionality
Php and database functionalityPhp and database functionality
Php and database functionality
Sayed Ahmed
 
The Hacker News: Hacking Wireless DSL routers via Admin Panel Password Reset ...
The Hacker News: Hacking Wireless DSL routers via Admin Panel Password Reset ...The Hacker News: Hacking Wireless DSL routers via Admin Panel Password Reset ...
The Hacker News: Hacking Wireless DSL routers via Admin Panel Password Reset ...
The Hacker News
 
Codeigniter Framework
Codeigniter FrameworkCodeigniter Framework
Codeigniter Framework
Warodom Dansuwandumrong
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
Chirag Parmar
 
A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!
Muhammad Ghazali
 
PHP Summer Training Presentation
PHP Summer Training PresentationPHP Summer Training Presentation
PHP Summer Training Presentation
Nitesh Sharma
 
Beginners PHP Tutorial
Beginners PHP TutorialBeginners PHP Tutorial
Beginners PHP Tutorial
alexjones89
 
Php Ppt
Php PptPhp Ppt
Php Ppt
vsnmurthy
 
MYSQL.ppt
MYSQL.pptMYSQL.ppt
MYSQL.ppt
webhostingguy
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
Giuseppe Maxia
 
MySQL Atchitecture and Concepts
MySQL Atchitecture and ConceptsMySQL Atchitecture and Concepts
MySQL Atchitecture and Concepts
Tuyen Vuong
 
Introduction to Mysql
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
Tushar Chauhan
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
Manish Bothra
 
MySql slides (ppt)
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
webhostingguy
 

Viewers also liked (17)

CodeIgniter PHP MVC Framework
CodeIgniter PHP MVC FrameworkCodeIgniter PHP MVC Framework
CodeIgniter PHP MVC Framework
 
โครงงาน Airlink เพื่อการศึกษา
โครงงาน Airlink เพื่อการศึกษาโครงงาน Airlink เพื่อการศึกษา
โครงงาน Airlink เพื่อการศึกษา
 
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
Solution Wireless Link 10 – 20 KM Speed 200 Mbps MikroTik RB SXT 5nDr2 Lite 5...
 
Php and database functionality
Php and database functionalityPhp and database functionality
Php and database functionality
 
The Hacker News: Hacking Wireless DSL routers via Admin Panel Password Reset ...
The Hacker News: Hacking Wireless DSL routers via Admin Panel Password Reset ...The Hacker News: Hacking Wireless DSL routers via Admin Panel Password Reset ...
The Hacker News: Hacking Wireless DSL routers via Admin Panel Password Reset ...
 
Codeigniter Framework
Codeigniter FrameworkCodeigniter Framework
Codeigniter Framework
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!A Good PHP Framework For Beginners Like Me!
A Good PHP Framework For Beginners Like Me!
 
PHP Summer Training Presentation
PHP Summer Training PresentationPHP Summer Training Presentation
PHP Summer Training Presentation
 
Beginners PHP Tutorial
Beginners PHP TutorialBeginners PHP Tutorial
Beginners PHP Tutorial
 
Php Ppt
Php PptPhp Ppt
Php Ppt
 
MYSQL.ppt
MYSQL.pptMYSQL.ppt
MYSQL.ppt
 
Introduction to MySQL
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
 
MySQL Atchitecture and Concepts
MySQL Atchitecture and ConceptsMySQL Atchitecture and Concepts
MySQL Atchitecture and Concepts
 
Introduction to Mysql
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
 
Php Presentation
Php PresentationPhp Presentation
Php Presentation
 
MySql slides (ppt)
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
 

Similar to Introduction To Code Igniter

Codegnitorppt
CodegnitorpptCodegnitorppt
Codegnitorppt
sreedath c g
 
Benefit of CodeIgniter php framework
Benefit of CodeIgniter php frameworkBenefit of CodeIgniter php framework
Benefit of CodeIgniter php framework
Bo-Yi Wu
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
ShahRushika
 
Developing Java Web Applications
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applications
hchen1
 
Intro To Mvc Development In Php
Intro To Mvc Development In PhpIntro To Mvc Development In Php
Intro To Mvc Development In Php
funkatron
 
Getting Started with Zend Framework
Getting Started with Zend FrameworkGetting Started with Zend Framework
Getting Started with Zend Framework
Juan Antonio
 
Codeigniter simple explanation
Codeigniter simple explanation Codeigniter simple explanation
Codeigniter simple explanation
Arumugam P
 
Building Large Scale PHP Web Applications with Laravel 4
Building Large Scale PHP Web Applications with Laravel 4Building Large Scale PHP Web Applications with Laravel 4
Building Large Scale PHP Web Applications with Laravel 4
Darwin Biler
 
Asp.Net MVC Intro
Asp.Net MVC IntroAsp.Net MVC Intro
Asp.Net MVC Intro
Stefano Paluello
 
Zend Framework Quick Start Walkthrough
Zend Framework Quick Start WalkthroughZend Framework Quick Start Walkthrough
Zend Framework Quick Start Walkthrough
Bradley Holt
 
Exploring Symfony's Code
Exploring Symfony's CodeExploring Symfony's Code
Exploring Symfony's Code
Wildan Maulana
 
Open Source Web Technologies
Open Source Web TechnologiesOpen Source Web Technologies
Open Source Web Technologies
Aastha Sethi
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
Joram Salinas
 
MongoDB.local Dallas 2019: MongoDB Stitch Tutorial
MongoDB.local Dallas 2019: MongoDB Stitch TutorialMongoDB.local Dallas 2019: MongoDB Stitch Tutorial
MongoDB.local Dallas 2019: MongoDB Stitch Tutorial
MongoDB
 
Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...
Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...
Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...
Amazon Web Services
 
Entity Framework Code First Migrations
Entity Framework Code First MigrationsEntity Framework Code First Migrations
Entity Framework Code First Migrations
Diluka99999
 
MongoDB.local Seattle 2019: MongoDB Stitch Tutorial
MongoDB.local Seattle 2019: MongoDB Stitch TutorialMongoDB.local Seattle 2019: MongoDB Stitch Tutorial
MongoDB.local Seattle 2019: MongoDB Stitch Tutorial
MongoDB
 
Developing Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web ApplicationDeveloping Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web Application
Mark Gu
 
Monorail presentation at WebDevelopersCommunity, Feb 1, 2009
Monorail presentation at WebDevelopersCommunity, Feb 1, 2009Monorail presentation at WebDevelopersCommunity, Feb 1, 2009
Monorail presentation at WebDevelopersCommunity, Feb 1, 2009
ken.egozi
 
CODE IGNITER
CODE IGNITERCODE IGNITER
CODE IGNITER
Yesha kapadia
 

Similar to Introduction To Code Igniter (20)

Codegnitorppt
CodegnitorpptCodegnitorppt
Codegnitorppt
 
Benefit of CodeIgniter php framework
Benefit of CodeIgniter php frameworkBenefit of CodeIgniter php framework
Benefit of CodeIgniter php framework
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
Developing Java Web Applications
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applications
 
Intro To Mvc Development In Php
Intro To Mvc Development In PhpIntro To Mvc Development In Php
Intro To Mvc Development In Php
 
Getting Started with Zend Framework
Getting Started with Zend FrameworkGetting Started with Zend Framework
Getting Started with Zend Framework
 
Codeigniter simple explanation
Codeigniter simple explanation Codeigniter simple explanation
Codeigniter simple explanation
 
Building Large Scale PHP Web Applications with Laravel 4
Building Large Scale PHP Web Applications with Laravel 4Building Large Scale PHP Web Applications with Laravel 4
Building Large Scale PHP Web Applications with Laravel 4
 
Asp.Net MVC Intro
Asp.Net MVC IntroAsp.Net MVC Intro
Asp.Net MVC Intro
 
Zend Framework Quick Start Walkthrough
Zend Framework Quick Start WalkthroughZend Framework Quick Start Walkthrough
Zend Framework Quick Start Walkthrough
 
Exploring Symfony's Code
Exploring Symfony's CodeExploring Symfony's Code
Exploring Symfony's Code
 
Open Source Web Technologies
Open Source Web TechnologiesOpen Source Web Technologies
Open Source Web Technologies
 
Codeigniter
CodeigniterCodeigniter
Codeigniter
 
MongoDB.local Dallas 2019: MongoDB Stitch Tutorial
MongoDB.local Dallas 2019: MongoDB Stitch TutorialMongoDB.local Dallas 2019: MongoDB Stitch Tutorial
MongoDB.local Dallas 2019: MongoDB Stitch Tutorial
 
Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...
Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...
Expedite the development lifecycle with MongoDB and serverless - DEM02 - Sant...
 
Entity Framework Code First Migrations
Entity Framework Code First MigrationsEntity Framework Code First Migrations
Entity Framework Code First Migrations
 
MongoDB.local Seattle 2019: MongoDB Stitch Tutorial
MongoDB.local Seattle 2019: MongoDB Stitch TutorialMongoDB.local Seattle 2019: MongoDB Stitch Tutorial
MongoDB.local Seattle 2019: MongoDB Stitch Tutorial
 
Developing Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web ApplicationDeveloping Next-Gen Enterprise Web Application
Developing Next-Gen Enterprise Web Application
 
Monorail presentation at WebDevelopersCommunity, Feb 1, 2009
Monorail presentation at WebDevelopersCommunity, Feb 1, 2009Monorail presentation at WebDevelopersCommunity, Feb 1, 2009
Monorail presentation at WebDevelopersCommunity, Feb 1, 2009
 
CODE IGNITER
CODE IGNITERCODE IGNITER
CODE IGNITER
 

Recently uploaded

What's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptxWhat's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptx
Stephanie Beckett
 
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly DetectionAdvanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Bert Blevins
 
find out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challengesfind out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challenges
huseindihon
 
Details of description part II: Describing images in practice - Tech Forum 2024
Details of description part II: Describing images in practice - Tech Forum 2024Details of description part II: Describing images in practice - Tech Forum 2024
Details of description part II: Describing images in practice - Tech Forum 2024
BookNet Canada
 
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - MydbopsScaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Mydbops
 
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdfINDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
jackson110191
 
UiPath Community Day Kraków: Devs4Devs Conference
UiPath Community Day Kraków: Devs4Devs ConferenceUiPath Community Day Kraków: Devs4Devs Conference
UiPath Community Day Kraków: Devs4Devs Conference
UiPathCommunity
 
Calgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptxCalgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptx
ishalveerrandhawa1
 
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyyActive Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
RaminGhanbari2
 
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-InTrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc
 
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdfWhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
ArgaBisma
 
DealBook of Ukraine: 2024 edition
DealBook of Ukraine: 2024 editionDealBook of Ukraine: 2024 edition
DealBook of Ukraine: 2024 edition
Yevgen Sysoyev
 
Research Directions for Cross Reality Interfaces
Research Directions for Cross Reality InterfacesResearch Directions for Cross Reality Interfaces
Research Directions for Cross Reality Interfaces
Mark Billinghurst
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Chris Swan
 
Comparison Table of DiskWarrior Alternatives.pdf
Comparison Table of DiskWarrior Alternatives.pdfComparison Table of DiskWarrior Alternatives.pdf
Comparison Table of DiskWarrior Alternatives.pdf
Andrey Yasko
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
Matthew Sinclair
 
Cookies program to display the information though cookie creation
Cookies program to display the information though cookie creationCookies program to display the information though cookie creation
Cookies program to display the information though cookie creation
shanthidl1
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
HackersList
 
WPRiders Company Presentation Slide Deck
WPRiders Company Presentation Slide DeckWPRiders Company Presentation Slide Deck
WPRiders Company Presentation Slide Deck
Lidia A.
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
Awais Yaseen
 

Recently uploaded (20)

What's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptxWhat's New in Copilot for Microsoft365 May 2024.pptx
What's New in Copilot for Microsoft365 May 2024.pptx
 
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly DetectionAdvanced Techniques for Cyber Security Analysis and Anomaly Detection
Advanced Techniques for Cyber Security Analysis and Anomaly Detection
 
find out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challengesfind out more about the role of autonomous vehicles in facing global challenges
find out more about the role of autonomous vehicles in facing global challenges
 
Details of description part II: Describing images in practice - Tech Forum 2024
Details of description part II: Describing images in practice - Tech Forum 2024Details of description part II: Describing images in practice - Tech Forum 2024
Details of description part II: Describing images in practice - Tech Forum 2024
 
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - MydbopsScaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
Scaling Connections in PostgreSQL Postgres Bangalore(PGBLR) Meetup-2 - Mydbops
 
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdfINDIAN AIR FORCE FIGHTER PLANES LIST.pdf
INDIAN AIR FORCE FIGHTER PLANES LIST.pdf
 
UiPath Community Day Kraków: Devs4Devs Conference
UiPath Community Day Kraków: Devs4Devs ConferenceUiPath Community Day Kraków: Devs4Devs Conference
UiPath Community Day Kraków: Devs4Devs Conference
 
Calgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptxCalgary MuleSoft Meetup APM and IDP .pptx
Calgary MuleSoft Meetup APM and IDP .pptx
 
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyyActive Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
Active Inference is a veryyyyyyyyyyyyyyyyyyyyyyyy
 
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-InTrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
TrustArc Webinar - 2024 Data Privacy Trends: A Mid-Year Check-In
 
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdfWhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
WhatsApp Image 2024-03-27 at 08.19.52_bfd93109.pdf
 
DealBook of Ukraine: 2024 edition
DealBook of Ukraine: 2024 editionDealBook of Ukraine: 2024 edition
DealBook of Ukraine: 2024 edition
 
Research Directions for Cross Reality Interfaces
Research Directions for Cross Reality InterfacesResearch Directions for Cross Reality Interfaces
Research Directions for Cross Reality Interfaces
 
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
Fluttercon 2024: Showing that you care about security - OpenSSF Scorecards fo...
 
Comparison Table of DiskWarrior Alternatives.pdf
Comparison Table of DiskWarrior Alternatives.pdfComparison Table of DiskWarrior Alternatives.pdf
Comparison Table of DiskWarrior Alternatives.pdf
 
20240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 202420240704 QFM023 Engineering Leadership Reading List June 2024
20240704 QFM023 Engineering Leadership Reading List June 2024
 
Cookies program to display the information though cookie creation
Cookies program to display the information though cookie creationCookies program to display the information though cookie creation
Cookies program to display the information though cookie creation
 
How Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdfHow Social Media Hackers Help You to See Your Wife's Message.pdf
How Social Media Hackers Help You to See Your Wife's Message.pdf
 
WPRiders Company Presentation Slide Deck
WPRiders Company Presentation Slide DeckWPRiders Company Presentation Slide Deck
WPRiders Company Presentation Slide Deck
 
Best Programming Language for Civil Engineers
Best Programming Language for Civil EngineersBest Programming Language for Civil Engineers
Best Programming Language for Civil Engineers
 

Introduction To Code Igniter

  • 1. Introduction To CodeIgniter Mohammad Amzad Hossain Softwork Solutions [email_address]
  • 2. Prerequisite OOP – Object Oriented Programming PHP MySQL
  • 3. Index Introduction Evolution Of Web Development Basic Idea Of Web Framework Why Framework not Scratch? MVC ( Model View Controller) Architecture What is CodeIgniter ???? Installation of CodeIgniter Application Flow of CodeIgniter CodeIgniter URL Controllers Views Models CodeIgniter Libraries Helpers A Basic Application Development Of Codeigniter Application Flow Q/A Reference
  • 4. Evolution of Web Development How you first started building websites.
  • 5. Evolution of Web Development How you’re building websites now.
  • 6. Evolution of Web Development How you build websites with a framework
  • 7. Basic Idea Of Web Framework A web application framework Is a Software framework Designed to support the development of Dynamic websites Web applications Web services Aims to alleviate the overhead associated with common activities used in Web development. Libraries for database access Templating frameworks Session management Often promote code reuse Many more …….
  • 8. Why Framework Not Scratch ? Key Factors of a Development Interface Design Business Logic Database Manipulation User Access Control Advantage of Framework Templating Provide Solutions to Common problems Abstract Levels of functionality Make Rapid Development Easier Disadvantage of Scratch Development Make your own Abstract Layer Solve Common Problems Yourself The more Typing Speed the more faster
  • 9. MVC Architecture Separates User Interface From Business Logic Model - Encapsulates core application data and functionality Business Logic. View - obtains data from the model and presents it to the user. Controller - receives and translates input to requests on the model or the view Figure : 01
  • 10. What is CodeIgniter ??? An Open Source Web Application Framework Nearly Zero Configuration MVC ( Model View Controller ) Architecture Multiple DB (Database) support DB Objects Templating Caching Modules Validation Rich Sets of Libraries for Commonly Needed Tasks Has a Clear, Thorough documentation
  • 11. Installation of CodeIgniter Requirments Web Server - Download & Install Apache PHP – 4.3.2 or Higher Database – MySQL ( support for other DB exists ) Installation Download the latest version from www.codeigniter.com and unzip into your web root directory. Open “application/config/config.php” and change base_url value to base url. For example: http://localhost/myci/ To Use Database open “application/config/database.php” and change necessary values. Usually you have to change: ‘hostname’, ‘username’, ‘password’, ‘datbase’. Start Your Web Server and Database Server and go to http:// localhot/myci
  • 12. Application Flow Of CodeIgniter Figure : 2 [ Application Flow of CodeIgniter]
  • 13. CodeIgniter URL URL in CodeIgniter is Segment Based. Segments in a URI CodeIgniter Optionally Supports Query String URL www.your-site.com/ news / article / my_article www.your-site.com/ class / function / ID www.your-site.com/index.php? c=news & m=article & ID=345
  • 14. Controllers A Class file resides under “application/controllers” www.your-site.com/index.php/ first <?php class First extends Controller{ function First() { parent::Controller(); } function index () { echo “<h1> Hello CUET !! </h1> “; } } ?> // Output Will be “Hello CUET!!” Note: Class names must start with an Uppercase Letter. In case of “constructor” you must use “parent::Controller();”
  • 15. Controllers In This Particular Code <?php class First extends Controller{ function index() { echo “<h1> Hello CUET !! </h1> “; } function bdosdn ( $location ) { echo “<h2> Hello $location !! </h2>”; } } ?> // Output Will be “Hello world !!” www.your-site.com/index.php/ first / bdosdn/ world Note: The ‘Index’ Function always loads by default. Unless there is a second segment in the URL
  • 16. VIEWS A Webpage or A page Fragment Should be placed under “application/views” Never Called Directly <html> <title> My First CodeIgniter Project</title> <body> <h1> Welcome ALL … To My .. ::: First Project ::: . . . </h1> </body> </html> web_root/myci/system/application/views/myview.php
  • 17. VIEWS Calling a VIEW from Controller Data Passing to a VIEW from Controller $this->load->view(‘myview’); function index() { $var = array( ‘ full_name’ => ‘Amzad Hossain’, ‘ email’ => ‘tohi1000@yahoo.com’ ); $this->load->view(‘myview’, $var); } <html> <title> ..::Personal Info::.. </title> <body> Full Name : <?php echo $full_name;?> <br /> E-mail : <?=email;?> <br /> </body> </html>
  • 18. VIEWS There are 3 mechanism that can be utilize to show Dynamic Data inside a VIEW File - Pure PHP - PHP’s Alternative Syntax - CodeIgniter’s Template Engine <!-- PHP’s Alternative Syntax --> <?php if( $for_this == true ):?> <h1> For This </h1> <?php elseif( $for_that == true ): ?> <h1> For That </h1> <?php else: ?> <h1> What </h1> <?php endif; ?> Note: There are other alternative syntax ‘for’, ‘foreach’, ‘while’
  • 19. Models Designed to work with Information of Database Models Should be placed Under “application/models/” Loading a Model inside a Controller <?php class Mymodel extend Model{ function Mymodel() { parent::Model(); } function get_info () { $query = $this->db->get(‘name’, 10); /*Using ActiveRecord*/ return $query->result(); } } ?> $this->load->model(‘mymodel’); $data = $this->mymodel->get_info();
  • 20. CodeIgniter Libraries Special Purpose Classes Loading CodeIgniter Library Benchmarking Database Encryption Calendaring FTP Table File Uploading Email Image Manipulation Pagination Input and Security HTML Trackback Parser Session Template Unit Testing User Agent URI Validation $this->load->library(‘database’);
  • 21. CodeIgniter Libraries Database Library Abstract Database Class support traditional structures and Active Record Pattern. Active Record Pattern General Approach function index() { $this->load->library(‘database’); $rslt = $this->db->query (“ select first_name from user_name ”); foreach( $rslt->result() as $row_data) echo $row_data->first_name . “<br />”; } function index() { $this->load->library(‘database’); $this->db->select(“first_name”); $rslt = $this->db->get (“ user_name ”); foreach( $rslt->result() as $row_data) echo $row_data->first_name . “<br />”; }
  • 22. Helpers Simply a collection of functions in a particular category. Loading A Helper Inside a Controller Array Date File HTML Smiley Text URL Cookie Download Form Security String Directory E-mail Inflector XML Parser Typography $this->load->helper(‘helper_name’); $this->load->helper(array(‘form’,’url’) );
  • 23. Helpers Form Helper form_open() form_open_multipart() form_input() form_textarea() form_checkbox() form_submit() form_close() URL Helper site_url() base_url() anchor() anchor_popup() mailto()
  • 24. A Personal Blog Using CI
  • 25. Questions & Answers
  • 26. Useful Links www.codeigniter.com http://codeigniter.com/wiki/Summary_of_Resources_Libraries_Helpers_Plugins.../
  • 27. Reference User Guide of CodeIgniter 1.6.1 Wikipedia PHPit Slideshare