5 ms·
I think the biggest distinction to me is that the controller is the entry-point into an action/routine. It takes external inputs and returns an output to be sen
by johnmaguire2013 7y ago
I think the biggest distinction to me is that the controller is the entry-point into an action/routine. It takes external inputs and returns an output to be sent back downstream.
- tabtab 7y agoThat's pretty much true of any function or method.
- johnmaguire2013 7y agoYes, but I'm talking about into the overall system, not into a method.
- justanotherc 7y agoIn many frameworks the controller isn't even the entrypoint anymore though. Laravel for example has a separate router layer, which is the entrypoint that then passes things into a controller.
- tabtab 7y agoIf the controller doesn't fulfill that job, then the model or view model would (for good or bad).