Created
November 10, 2014 20:42
-
-
Save hjoseph96/11de885b7aeb6ae15af6 to your computer and use it in GitHub Desktop.
MVC Lecture Notes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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