Model View Controller: Difference between revisions
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
= | {| class="mw-collapsible mw-collapsed wikitable" | ||
! C++11 MVC skeleton | |||
Three objects contain most of the functionality. In addition, utilities.* provides crosscut features like global logging. | |- | ||
| Three objects contain most of the functionality. In addition, utilities.* provides crosscut features like global logging. | |||
'''CONTROLLER header''' | '''CONTROLLER header''' | ||
Line 28: | Line 29: | ||
{ | { | ||
HTDJLocalModel(); | HTDJLocalModel(); | ||
|} | |||
= | {| class="mw-collapsible mw-collapsed wikitable" | ||
! HTML+CSS+JS as MVC | |||
|- | |||
| "Use as the wonderful MVC structure they are", heh | |||
# HTML is your Model, containing your data | # HTML is your Model, containing your data | ||
# CSS is your View, defining how the page should look | # CSS is your View, defining how the page should look | ||
# JS is your Controller, controlling how the model and view interact. | # JS is your Controller, controlling how the model and view interact. | ||
|} |