I think you confuse some concepts here. First of all, MVC is not quite a design template, but a more general concept of organizing an application. B / c there is no one, no better implementation for MVC. MVC is what your common sense tells you about structuring data processing. Separate what you see from what is going on inside and what information is processed at all.
Singletones are commonly used b / c in MVC, you have many different objects using the same resources. To organize the fact that you can use a registry implemented as singelton to access a database, for example.
Best wishes
Raffael
EDIT:
in fact, there are many different ideas about what a useful implementation of an MVC structure should look like.
For example, in books you usually see three windows, the Labeles model ',' view 'and' controller '. And they are all connected by arrows. IMO, the relationship between the "view" and the "model" should be ignored because the model must be handled by the controller that communicates with the view.
I also think that it is very important to distinguish between business logic and the controller. Mix lightly. But BL belongs to the model level. In this sense, I do not think of MVC as something like a triangle, but a three-element system V / C / M.
Raffael
source share