Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

The proper MVC pattern [closed]

I have come across both the following approaches.

Method 1

Method 2

To my understanding the Model and the View doesn't communicate with each other and all communications should be done through controllers thus Method 1 is the proper way. But I have come across both approaches on various articles online.

What is the proper way to implement the MVC Architecture?

Thank You

like image 965
Janak Avatar asked Mar 27 '16 02:03

Janak


1 Answers

i think the 1st diagram is actually an MVP (model view presenter). see this question which eventually links here and contains this diagram for an VMP pattern with a passive view: enter image description here

like image 180
radai Avatar answered Oct 19 '22 17:10

radai