magento - MVC- when are controllers needed? -


i learning magento , mvc pattern , struggling grasp concepts.

i'm trying understand controllers , when used.

say, example, building interface purely exports data in background when event dispatched. if no views in use, true controller not needed?

when controllers needed in mvc application?

controllers part of mvc handles user input. takes data incoming request , distributes model layer structure (preferably - services).

controllers have nothing rendering of output. closes should come influencing response should minor alteration of state view instance (for example, indicating view change output html json). neither controller responsible trafficking data between model layer , views.


Comments

Popular posts from this blog

linux - Does gcc have any options to add version info in ELF binary file? -

android - send complex objects as post php java -

charts - What graph/dashboard product is facebook using in Dashboard: PUE & WUE -