Lecture 3 revision

MVC – Controllers and Views

3-layer architecture

MVC + 3-layer architecture

alt text

Model–view–controller (MVC) - a software architectural pattern, that separates an application's data, user interface, and control flow into three components:

View

Controller

Benefits of MVC

Convention vs Configuration

Convention vs. Configuration is a design philosophy that:

tools that you run from the command line that will do this for you

Why Choose CodeIgniter

Codeigniter Models

Raw SQL & QueryBuilder Class

alt text