CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
-
Upload
weerayut-hongsa -
Category
Technology
-
view
430 -
download
1
Transcript of CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter
CodeIgniter For ProjectLesson 103 : Introduction to CodeIgniter
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
What is CodeIgniter?
“CodeIgniter is a powerful PHP framework with a very small footprint, built for developers who need a simple and elegant
toolkit to create full-featured web applications.”
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Why should use CodeIgniter
• Very Simple
• Lightweight
• Excellent Documentation
• Large User Community
• Compatibility with standard hosting (PHP 5.2.4)
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Server Requirements
• Apache Web Server 2.2
• PHP Version 5.3 or newer is recommended.
• MySQL (5.1+) via the mysql (deprecated), mysql and pdo driver.
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
CodeIgniter Architecture
• Running on LAMP Stack
• Model-View-Controller (MVC) development pattern
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
LAMP Stack
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Linux Apache MySQL PHP
Model-View-Controller (MVC)• The Model represents your data structures. Typically your model classes will
contain functions that help you retrieve, insert, and update information in your database.
• The View is the information that is being presented to a user. A View will normally be a web page, but in CodeIgniter, a view can also be a page fragment like a header or footer. It can also be an RSS page, or any other type of “page”.
• The Controller serves as an intermediary between the Model, the View, and any other resources needed to process the HTTP request and generate a web page.
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
CodeIgniter Flow Chart
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
All About CodeIgniter
• Web Site : https://www.codeigniter.com/
• Documentation : https://www.codeigniter.com/docs
• Community : https://www.codeigniter.com/community
• StackOverflow : http://stackoverflow.com/questions/tagged/codeigniter
CodeIgniter File Structure
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
CodeIgniter File Structure• cache : Store web application cache file.
(if you want to use caching)
• controller : Store application controller file.
• config : Store application configuration file.
• helpers : Store custom helper function file.
• language : Store language file (if you want to developing application multi-language)
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
• libraries : Store custom library file.
• logs : Store logging file.
• models : Store application model file.
• third_party : Store 3party class and function file.
• view : Store application view page file.
CodeIgniter File Structure
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Configuration First time
• application/config/config.php
• application/config/database.php
• application/config/route.php
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com
Forward to Workshop 002
Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd
https://kusumotolab.com