samedi 29 août 2015

The Model-to-View communication in MVC?

I'm learning MVC now and I just got that when the model is modified by the controller, it can notify the view to update the data from model. While I'm quite confused about it. Since the model is modified by the controller rather than itself or something else, it should be the controller that sends the update notification to the view. Also I haven't found any example of such Model-to-View communication, please give me one to make it clear if anyone understands this idea well.

Aucun commentaire:

Enregistrer un commentaire