Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>It was becoming a bit confused, so I googled to see what some leading <a href="http://msdn.microsoft.com/en-us/library/ff649643.aspx" rel="nofollow noreferrer">authorities</a> have to say, because Wikipedia and the first hits are not as good as they seemed to be.</p> <ul> <li><strong>Model</strong>. The Model manages the behavior and data of the application domain, responds to requests for information about its state (usually from the View), and responds to instructions to change state (usually from the Controller).</li> <li><strong>View</strong>. The View manages the display of information.</li> <li><strong>Controller</strong>. The Controller interprets the mouse and keyboard inputs from the user, <em>informing</em> the Model and/or the View to change as appropriate.</li> </ul> <p>So it seems that the Controller notifies the View. </p> <p>But it is important to note that both the View and the Controller depend on the Model. However, <strong>the Model depends on neither the View nor the Controller</strong>. This is one of the key benefits of the separation. This separation allows the model to be built and tested independent of the visual presentation.</p> <p><img src="https://i.stack.imgur.com/03xpn.gif" alt="MVC"></p> <p>And of course the Controller cannot be the only one who changes the Model. For that reason there are indeed some variations:</p> <p>The <strong>passive</strong> model is employed when one Controller manipulates the Model exclusively. The controller modifies the Model and then informs the View that the Model has changed and should be refreshed. The Model in this scenario is completely independent of the View and the Controller, which means that there is no means for the Model to report changes in its state.</p> <p>The <strong>active</strong> model is used when the Model changes state without the controller's involvement. This can happen when other sources are changing the data and the changes must be reflected in the Views. Because only the Model detects changes to its internal state when they occur, the Model must notify the views to refresh the display. -> Explains the case.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload