D
D
Dom Alfro2019-02-23 12:27:16
Design patterns
Dom Alfro, 2019-02-23 12:27:16

Would you like to learn about the logic and concept of MVC?

Good day ! I wanted to know - I just can’t find the information I need and I’m interested - I will be very grateful in advance who will participate and help decide, maybe something to read will give. Because I can’t figure out what a fat “Ugly” Controller means - well, I read that the logic should be in the Model, and in the controller there should be a connection between the View and Model / This controller, as I understand it, should send requests from the Model to the view. Not much confused.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Stalker_RED, 2019-02-23
@Stalker_RED

The hunt for the mythical MVC
In short: it's impossible to implement a "correct" VMVC on the web, and almost all current "MVC types" are only partially similar to the original concept. And there may be differences between these implementations.
Someone makes a thick controller, and someone vice versa.

N
Northern Lights, 2019-02-23
@php666

MVC on the example of a car

Because I can't figure out what a fat "Ugly" Controller means"
An ugly" controller is when it contains logic that should be in models or in related classes. For example, business logic or other calculations.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question