CodeIgniter 是什么
CodeIgniter isa powerful PHP framework
with a very small footprint, built for PHP
coders who need a simple and elegant
toolkit to create full-featured web
applications. If you‘re a developer who
lives in the real world of shared hosting
accounts and clients with deadlines, and if
you’re tired of ponderously large and
thoroughly undocumented frameworks.
CodeIgniter 的那些事
CI 的构架
Design andArchitectural Goals
Our goal for CodeIgniter is maximum performance, capability, and
flexibility in the smallest, lightest possible package.
特性
dynamically instantiated
loosely coupled
high component singularity
CodeIgniter 的那些事
CI 的构架 -MVC
Model
和各种数据源打交道,包含但不限于数据库的数据,建立数据源与 php
变量的关联
View
表现给用户看的内容, CI 使用的是原生态的 php 作为 html 模板,效率
很高
Controller
处理业务逻辑,协调 Model 的工作,支持 View 的工作,以实现业务请
求
CodeIgniter 的那些事