Top Banner
CodeIgniter For Project Lesson 103 : Introduction to CodeIgnite r Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd https://kusumotolab.com
14

CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

Jan 18, 2017

Download

Technology

Weerayut Hongsa
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: 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

Page 2: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

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

Page 3: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

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

Page 4: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

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

Page 5: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

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

Page 6: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

LAMP Stack

Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd

https://kusumotolab.com

Linux Apache MySQL PHP

Page 7: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

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

Page 8: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

CodeIgniter Flow Chart

Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd

https://kusumotolab.com

Page 9: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

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

Page 10: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

CodeIgniter File Structure

Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd

https://kusumotolab.com

Page 11: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

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

Page 12: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

• 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

Page 13: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

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

Page 14: CodeIgniter For Project : Lesson 103 - Introduction to Codeigniter

Forward to Workshop 002

Weerayut Hongsa : Network Engineer / Software Developer Major Kantana Broadcasting Co., Ltd

https://kusumotolab.com