Suppose that I need to carry out some data manipulations and pass the final set to a view (for output to a page, for example). If you push everything into the controller's methods, it will turn out as described here. Where to keep the business logic of the application? . Please tell me where it is better to organize such logic? Before that, I just used controller methods. Thank you all for the answers!
2 answers
In MVC, as a rule, everything regarding data happens in models.
- Thank you for your reply! Could you give an example of the project? Maybe somewhere on the githaba saw? - dexploizer
|
Make an intermediate layer for business logic, for example service
- An interesting approach, thanks! Can you give an example of a project from a githab, if you have seen one? - dexploizer
|