What is the purpose of the controller in MVC? what is the difference between it and the model? I just learned the MVC framework. What I cannot understand is that the controller. what I understand is that the model layer is the processing page of the background, and the view layer is the front-end. what is the use of controllers on the page? I have read the analogy of "restaurant order" in the book, but I still don't know which part of the controller is used in website development. thank you here ------ solution ----- what is the use of the controller in MVC? what is the difference with the model?
What I just learned about the MVC framework is hard to understand is the controller. I understand the model layer as the backend processing page view layer as the front-end page. what should I do with the controller? what is the metaphor of the book "restaurant order "? I have read it, but I still don't know which part of the controller is used in website development. please give pointers and use the actual website development as an example to describe it here. thank you!
------ Solution --------------------
MVC has no clear division of labor among members.
So what do you do is correct