Skip to content

Instantly share code, notes, and snippets.

@hjoseph96
Created November 10, 2014 20:42
Show Gist options
  • Save hjoseph96/11de885b7aeb6ae15af6 to your computer and use it in GitHub Desktop.
Save hjoseph96/11de885b7aeb6ae15af6 to your computer and use it in GitHub Desktop.
MVC Lecture Notes
Model * = Definition
View
Controller
Client -------> server |
request |
|
Client <------- server ▼
response
+---------------+
| |****
| Router |----> Router: determine intent of the request and dispatch it
| |****
+---------------+
|
| Controller: 1) Coordinating work in the system
▼ ▲ 2) HTTP Bullshit
*|*
+------------+ +---------+
| | ----> | Views | -------> Views: 1) Combining data + HTML
| Controller | <---- +---------+
| | +---------+
| | ----> | Helpers | -------> Helpers: 1) Jeff "hate dat"
+------------+ <---- +---------+ (View Objects/Decorators) 2) Format data for presentation
| ▲
| |
▼ |
+------------+
| | *******
| Model | -------> Model: 1) engine of domain logic
| | ******* 2) data access layer
+------------+
▲ |
| |
| |
| ▼
+--------------------------------------------+
| |
| |
| DATABASE |
| |
| |
+--------------------------------------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment