Tomasz Sporys11,258 Points
Why do we populate properties in Controller not model?
In the video we created comicBook(model) and populate all its properties in Controller but we were told that all the data are coming from and are kept in Model. Is it how you do it in MVC? Do I just use a Model as a template and create objects and put all the data in Controller? Thanks for answer:)
Steven Parker200,416 Points
The model typically defines the structure of the data.
As you said, it serves as a "template", defining the data-holding object. It's a typical job of the controller to construct and fill the model, and then pass it along to the view.