I need to know is the next against MVC or not?
I have models A,B,C, and there are two main controllers CMS and Site. My Team leader say we’ll just put the crud operations for A,B,C (gets to Site) and (puts in CMS).
I didn’t agree with that and I wanted to have a controller for each model. Why the heck we group all functions in one place. so what should I do am I wrong ? is that good for the future of the project ? specially I’m responsible for so many operations and tasks to come in the near future and I would hate to work on such crowded and unfriendly code design.
I feel like CRUD operations should be handled by a model. The controller can then use said model to perform CRUD operations allowing the Model to hold the application logic keeping your controller “skinny”.
This is assuming that your models represent business objects.