i know that everything is going through the controller.
but i often read articles that says something like this:
- user interacts with the view
- controller asks the model to change its state
- model notifies the view when its sate has changed
i dont get the 3rd one. why saying that the model notifies the view, when it actually is notifying the controller and the controller is notifying the view?
That seems more like a desktop system and not a stateless system like a website.
But maybe it’s talking about how some people like to query the models from the view e.g.
I’m more of a fan of getting all the info in the controller (preparing the users array in the controller) and passing it to the view from the controller.