Skip to main content

Posts

Showing posts from March, 2014

Model view controller.

For years I have heard MVC model view controller banded about willie Nillie.  I got the basics but finally I really get it. It should actually be called cmv or vmc. Not MVC.  So how do these layers work.  Let's start at the controller layer.  The controller is where all and I mean all the data is dealt with. Using this layer classes Adler created the rerun Lists of items air a single item from the data. All items from his class are returned to the model in a structured data class or as a data type. This means that the model becomes data implementation agnostic.  At no time should the model directly manipulate the data rather it works with the data types passed to it from the controller and uses those variances and structures to develop the logic or model on what happens to the data.  Which brings us to the model.  He model is the logic that links the controller to the view. Using the data the view provides it and manipulating or changing it view calculation or any other logic so it