mardi 7 mars 2017

Who handles the program "flow of control" within MVC?

I have been looking for over a month for a solid answer to this question. There are only loose "opinions" and no solid facts about how a program's flow of control takes place within a project that is using the MVC design pattern.

I've seen both opinions that yes, the Controller takes care of everything that the Model and View doesn't, and no, the Controller is only responsible for handling the integrity of input and calls to the Model for data manipulation, and that if you use the Controller to handle the "flow of control" then you've designed your program poorly.

I think I'm looking for experience wisdom here. I don't have any professional programming friends to ask and I'm just learning MVC for the first time. So your years of experience here will be extremely valuable to me as this kind of information isn't in the documentation/books I have been reading.

Aucun commentaire:

Enregistrer un commentaire