Note: I’ve read another thread on the same subject , only would like more opinions .
I’m using Yii Framework , but in some projects involving complex processes in some cases I did these processes in "Model " , in other cases I did the " Controller " (which I admit is a big mistake because the code gets stuck one controller ) .
In the case of model I made processes such as :
- To save pending , registering all charges , send an email to the customer , etc. ( I did not do all this but I was thinking of doing )
Okay when you made that code , you know that it will register the collection together and it is not necessary to register the charge , but when else will change your code it can expect the médodo " Save Pending " just save the pendency and not all charges .
This weekend , I thought about the possibility of joining the MVC (which I really like ) with a service layer that is very necessary to me , is that it may cause some impact to the goals of " MVC " ?