by narribbi · 9y ago · 0 comments
* The MODEL is something like a web server
* The VIEW is something like a browser
* The CONTROLLER is something like the Windows start menu
Trygve literally writes:
"A view (=browser) is attached to its model (=server) and gets the data necessary for the presentation from the model by asking questions (=submitting queries). It may also update the model (=posting) by sending appropriate messages. A controller (=start menu) provides the user with input (=menu items) by arranging for relevant views (=windows) to present themselves in appropriate places on the screen."
Case in point: to you, it seems obvious that the controller is like the Windows start menu. To me, that doesn't make any sense at all.
Hardly the best example of an MVC controller (even if they still are controllers).
Model: JavaScript
View: HTML templates and css
Controller: Browser engine