wangzjie1
(511217265)
December 7, 2014, 5:10am
1
business logic is suggested to put in model, but the model may be very fat. anyone have a idea?
Anything that is used just for one model should stay inside model class, if U have anything that’s shared among more models, U can move it to some component
alirz23
(Ali Raza)
December 8, 2014, 6:26am
3
this is not related to yii but PHP in general here
In this first part of a series, I introduce you to what a service layer is and how to use it in conjunction with an MVC stack. While you don’t need to use one in every possible case, a service layer can be of great help in interfacing sections of an...
http://akrabat.com/php/objects-in-the-model-layer-part-2/