Fat models or fat controllers?

Until now I’ve been using a MVC that had drawn the line pretty specifically, models were for basically only sql and controllers were for the logic so in a sense I had fat controllers and models slim in a sense.

What is the preferred way with Yii?

To my knowledge Yii recommends the Fat model method.

I recommend you look at the following:

Docs: Best MVC Practices

http://www.yiiframework.com/doc/guide/1.1/en/basics.best-practices

Forum: Fat Model Thin Controller

http://www.yiiframework.com/forum/index.php/topic/5564-fat-model-thin-controller/

Thanks for the study links!

Fat models all the way! :)

It’s not as easy as it sounds - my controllers seems to grow overweight with time, if I’m not careful…