News for hackers. Stuff that matters.
Re:MVC Isn’t MVC by wvenable on Monday June 19, 2023 @11:45PM (#36399462)
The model is the storage abstraction -- it knows how to load and save itself to the database.

The view is the output abstraction -- it knows how to generate the HTML from the model. It doesn't know how to load and save to the database.

The controller is what puts these things together. It interacts with the model to get it loaded and passes it to the correct view for display.

There are no comments on this comment yet.