mercredi 30 mars 2016

In MVC, View has both interface MC, how to restrict the view directly call the model APIs?

I recently came across Kathy Sierra - HeadFirstDesignPattern -JAVA. I have doubt regarding MVC. View has both MC interface references.But view using the controller interface API's to update the data.this controller calls the Model API and notify the view to update.

Since View has model interface , i can directly call the Model api and violate the principal of updating via controller.How to enforce the view to use controller only.

no enough info from this post : Controller in MVC design pattern

Aucun commentaire:

Enregistrer un commentaire