3 ms·
> Controllers are the UI I agree. > What is the responsibility of the controller? Controllers are the UI ? but the UI of what ? HTTP. controllers should on
by camus2 13y ago
> Controllers are the UI
I agree.
> What is the responsibility of the controller?
Controllers are the UI ? but the UI of what ? HTTP. controllers should only deal with HTTP (request,respone,cookies,session) stuff , nothing else. The rest should be encapsulated in services, which communicates through models.
The truth is , it is not MVC , MVC is a poor label for that kind of architecture since MVC means something very specific in software engineering.