Introduction To Code Igniter

Amzad Hossain
Amzad HossainBranch Manager em Sourcetop Inc. ( www.sourcetop.com )
Introduction To CodeIgniter Mohammad Amzad Hossain Softwork Solutions [email_address]
Prerequisite ,[object Object],[object Object],[object Object]
Index ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Evolution of Web Development How you first started building websites.
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 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Why Framework Not Scratch ?  ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
MVC Architecture ,[object Object],[object Object],[object Object],[object Object],Figure :  01
What is CodeIgniter ??? ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Installation of CodeIgniter ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Application Flow Of CodeIgniter Figure :  2  [ Application Flow of CodeIgniter]
CodeIgniter URL ,[object Object],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 ,[object Object],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!!” ,[object Object],[object Object],[object Object]
Controllers ,[object Object],<?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 ,[object Object],[object Object]
VIEWS ,[object Object],[object Object],[object Object],<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
VIEWS ,[object Object],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 ,[object Object],[object Object],[object Object],[object Object],<!--  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; ?> ,[object Object],[object Object]
Models ,[object Object],[object Object],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’);
CodeIgniter Libraries ,[object Object],[object Object],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 ,[object Object],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 ,[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
A Personal Blog Using CI
Questions  &  Answers
Useful Links ,[object Object],[object Object]
Reference ,[object Object],[object Object],[object Object],[object Object]
1 de 27

Recomendados

CodeigniterCodeigniter
Codeigniterminhrau111
13.3K visualizações36 slides
PHP Frameworks and CodeIgniterPHP Frameworks and CodeIgniter
PHP Frameworks and CodeIgniterKHALID C
2.8K visualizações53 slides

Mais conteúdo relacionado

Mais procurados

Having fun with code igniterHaving fun with code igniter
Having fun with code igniterAhmad Arif
378 visualizações27 slides
Introduction to CodeIgniterIntroduction to CodeIgniter
Introduction to CodeIgniterPiti Suwannakom
1.4K visualizações27 slides

Mais procurados(20)

CodeIgniter 101 TutorialCodeIgniter 101 Tutorial
CodeIgniter 101 Tutorial
Konstantinos Magarisiotis7.2K visualizações
Code igniter - A brief introductionCode igniter - A brief introduction
Code igniter - A brief introduction
Commit University3.2K visualizações
Having fun with code igniterHaving fun with code igniter
Having fun with code igniter
Ahmad Arif378 visualizações
Introduction to MVC Web Framework with CodeIgniterIntroduction to MVC Web Framework with CodeIgniter
Introduction to MVC Web Framework with CodeIgniter
Pongsakorn U-chupala8.8K visualizações
Introduction to CodeIgniterIntroduction to CodeIgniter
Introduction to CodeIgniter
Piti Suwannakom1.4K visualizações
Codeigniter IntroductionCodeigniter Introduction
Codeigniter Introduction
Ashfan Ahamed829 visualizações
Progressive EPiServer DevelopmentProgressive EPiServer Development
Progressive EPiServer Development
joelabrahamsson3.2K visualizações
Yii IntroductionYii Introduction
Yii Introduction
Jason Ragsdale2.5K visualizações
Mainframe, the fast PHP frameworkMainframe, the fast PHP framework
Mainframe, the fast PHP framework
bibakis5.1K visualizações
yii1yii1
yii1
Rajat Gupta259 visualizações
ASP.NET MVC 5 - EF 6 - VS2015ASP.NET MVC 5 - EF 6 - VS2015
ASP.NET MVC 5 - EF 6 - VS2015
Hossein Zahed3.4K visualizações
MVC - IntroductionMVC - Introduction
MVC - Introduction
Sudhakar Sharma8.7K visualizações
Getting started with angular jsGetting started with angular js
Getting started with angular js
Maurice De Beijer [MVP]11.2K visualizações
Mvc4Mvc4
Mvc4
Muhammad Younis8.5K visualizações
MVC 6 IntroductionMVC 6 Introduction
MVC 6 Introduction
Sudhakar Sharma1.5K visualizações
yii frameworkyii framework
yii framework
Akhil Kumar6.3K visualizações
Asp.net mvc 5 course   module 1 overviewAsp.net mvc 5 course   module 1 overview
Asp.net mvc 5 course module 1 overview
Sergey Seletsky2.8K visualizações
Beautiful REST and JSON APIs - Les HazlewoodBeautiful REST and JSON APIs - Les Hazlewood
Beautiful REST and JSON APIs - Les Hazlewood
jaxconf1.3K visualizações
Yii php framework_honeyYii php framework_honey
Yii php framework_honey
Honeyson Joseph5.5K visualizações

Destaque(17)

CodeIgniter PHP MVC FrameworkCodeIgniter PHP MVC Framework
CodeIgniter PHP MVC Framework
Bo-Yi Wu27.4K visualizações
Php and database functionalityPhp and database functionality
Php and database functionality
Sayed Ahmed105 visualizações
Codeigniter FrameworkCodeigniter Framework
Codeigniter Framework
Warodom Dansuwandumrong615 visualizações
CodeigniterCodeigniter
Codeigniter
Chirag Parmar4.9K visualizações
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 Ghazali12.2K visualizações
PHP Summer Training PresentationPHP Summer Training Presentation
PHP Summer Training Presentation
Nitesh Sharma26.2K visualizações
Beginners PHP TutorialBeginners PHP Tutorial
Beginners PHP Tutorial
alexjones8918.2K visualizações
Php PptPhp Ppt
Php Ppt
vsnmurthy50.4K visualizações
MYSQL.pptMYSQL.ppt
MYSQL.ppt
webhostingguy40.1K visualizações
Introduction to MySQLIntroduction to MySQL
Introduction to MySQL
Giuseppe Maxia11.3K visualizações
MySQL Atchitecture and ConceptsMySQL Atchitecture and Concepts
MySQL Atchitecture and Concepts
Tuyen Vuong32.5K visualizações
Introduction to MysqlIntroduction to Mysql
Introduction to Mysql
Tushar Chauhan30.7K visualizações
Php PresentationPhp Presentation
Php Presentation
Manish Bothra95.8K visualizações
MySql slides (ppt)MySql slides (ppt)
MySql slides (ppt)
webhostingguy32.7K visualizações

Similar a Introduction To Code Igniter

CodegnitorpptCodegnitorppt
Codegnitorpptsreedath c g
333 visualizações26 slides
Benefit of CodeIgniter php frameworkBenefit of CodeIgniter php framework
Benefit of CodeIgniter php frameworkBo-Yi Wu
1K visualizações37 slides
CodeigniterCodeigniter
CodeigniterShahRushika
31 visualizações24 slides
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applicationshchen1
16.4K visualizações45 slides
Intro To Mvc Development In PhpIntro To Mvc Development In Php
Intro To Mvc Development In Phpfunkatron
13.3K visualizações60 slides
Getting Started with Zend FrameworkGetting Started with Zend Framework
Getting Started with Zend FrameworkJuan Antonio
7.4K visualizações67 slides

Similar a Introduction To Code Igniter(20)

CodegnitorpptCodegnitorppt
Codegnitorppt
sreedath c g333 visualizações
Benefit of CodeIgniter php frameworkBenefit of CodeIgniter php framework
Benefit of CodeIgniter php framework
Bo-Yi Wu1K visualizações
CodeigniterCodeigniter
Codeigniter
ShahRushika31 visualizações
Developing Java Web ApplicationsDeveloping Java Web Applications
Developing Java Web Applications
hchen116.4K visualizações
Intro To Mvc Development In PhpIntro To Mvc Development In Php
Intro To Mvc Development In Php
funkatron13.3K visualizações
Getting Started with Zend FrameworkGetting Started with Zend Framework
Getting Started with Zend Framework
Juan Antonio7.4K visualizações
Codeigniter simple explanation Codeigniter simple explanation
Codeigniter simple explanation
Arumugam P51 visualizações
Asp.Net MVC IntroAsp.Net MVC Intro
Asp.Net MVC Intro
Stefano Paluello7.9K visualizações
Zend Framework Quick Start WalkthroughZend Framework Quick Start Walkthrough
Zend Framework Quick Start Walkthrough
Bradley Holt2.3K visualizações
Exploring Symfony's CodeExploring Symfony's Code
Exploring Symfony's Code
Wildan Maulana2.6K visualizações
Open Source Web TechnologiesOpen Source Web Technologies
Open Source Web Technologies
Aastha Sethi724 visualizações
CodeigniterCodeigniter
Codeigniter
Joram Salinas475 visualizações
Entity Framework Code First MigrationsEntity Framework Code First Migrations
Entity Framework Code First Migrations
Diluka999991K visualizações
CODE IGNITERCODE IGNITER
CODE IGNITER
Yesha kapadia54 visualizações

Último(20)

.conf Go 2023 - SIEM project @ SNF.conf Go 2023 - SIEM project @ SNF
.conf Go 2023 - SIEM project @ SNF
Splunk178 visualizações
PharoJS - Zürich Smalltalk Group Meetup November 2023PharoJS - Zürich Smalltalk Group Meetup November 2023
PharoJS - Zürich Smalltalk Group Meetup November 2023
Noury Bouraqadi102 visualizações
Five Things You SHOULD Know About PostmanFive Things You SHOULD Know About Postman
Five Things You SHOULD Know About Postman
Postman22 visualizações
PyCon ID 2023 - Ridwan Fadjar Septian.pdfPyCon ID 2023 - Ridwan Fadjar Septian.pdf
PyCon ID 2023 - Ridwan Fadjar Septian.pdf
Ridwan Fadjar165 visualizações
Liqid: Composable CXL PreviewLiqid: Composable CXL Preview
Liqid: Composable CXL Preview
CXL Forum120 visualizações
[2023] Putting the R! in R&D.pdf[2023] Putting the R! in R&D.pdf
[2023] Putting the R! in R&D.pdf
Eleanor McHugh36 visualizações
Java 21 and Beyond- A Roadmap of Innovations  .pdfJava 21 and Beyond- A Roadmap of Innovations  .pdf
Java 21 and Beyond- A Roadmap of Innovations .pdf
Ana-Maria Mihalceanu54 visualizações
Web Dev - 1 PPT.pdfWeb Dev - 1 PPT.pdf
Web Dev - 1 PPT.pdf
gdsczhcet49 visualizações
TE Connectivity: Card Edge InterconnectsTE Connectivity: Card Edge Interconnects
TE Connectivity: Card Edge Interconnects
CXL Forum95 visualizações
Business Analyst Series 2023 -  Week 3 Session 5Business Analyst Series 2023 -  Week 3 Session 5
Business Analyst Series 2023 - Week 3 Session 5
DianaGray1094 visualizações
The Research Portal of Catalonia: Growing more (information) & more (services)The Research Portal of Catalonia: Growing more (information) & more (services)
The Research Portal of Catalonia: Growing more (information) & more (services)
CSUC - Consorci de Serveis Universitaris de Catalunya59 visualizações

Introduction To Code Igniter

  • 1. Introduction To CodeIgniter Mohammad Amzad Hossain Softwork Solutions [email_address]
  • 2.
  • 3.
  • 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.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12. Application Flow Of CodeIgniter Figure : 2 [ Application Flow of CodeIgniter]
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 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.
  • 22.
  • 23.
  • 24. A Personal Blog Using CI
  • 25. Questions & Answers
  • 26.
  • 27.