5 ms·
Business logic goes in the controller. That's why it's called a controller because it controls stuff like access to your data.
by nprateem 4y ago
Business logic goes in the controller. That's why it's called a controller because it controls stuff like access to your data.
- hbrn 4y agoOh sweet summer child. Please read this carefully: https://folk.universitetetioslo.no/trygver/1979/mvc-2/1979-12-MVC.pdf https://folk.universitetetioslo.no/trygver/1979/mvc-2/1979-1... Business logic is supposed to be reused. Controllers in web frameworks (views in Django) expose no way to do it.
- crucialfelix 4y agoI try to use controllers just to connect incoming events or API calls to the business layer. The control part is more like Traffic Controller . Just directing traffic.