Welcome Guest, Not a member yet? Register   Sign In
skinny controller or skinny model?
#6

[eluser]PhilTem[/eluser]
As I stated above: My MY_Model is huge (around 3k SLOC) but every model extending it is very small (only around 50 SLOC).
Therefore my controllers tend to be a little bigger (even though MY_Controller is still the biggest with around 400 SLOC at the moment) since they grab data from the libraries, adjust the template and that stuff. Have a look at how "professionals" do it like in PyroCMS or Bonfire. They have rather big controllers, too.

And, just noticed, it also depends how you define fat controller. If you have many many methods in your controller but each method only has less than 10 LOC, is it still fat or not? If you only have two methods but these are around 100 LOC, is it fat or not?

Anyhow, I'd say: Do it the way your comfortable with, though I am not sure if your 'fat controller intermediate CI' comparison is right Wink You might offend people Big Grin


Messages In This Thread
skinny controller or skinny model? - by El Forum - 06-07-2012, 10:29 PM
skinny controller or skinny model? - by El Forum - 06-07-2012, 10:40 PM
skinny controller or skinny model? - by El Forum - 06-08-2012, 05:13 AM
skinny controller or skinny model? - by El Forum - 06-08-2012, 06:01 AM
skinny controller or skinny model? - by El Forum - 06-08-2012, 09:08 AM
skinny controller or skinny model? - by El Forum - 06-08-2012, 09:52 AM
skinny controller or skinny model? - by El Forum - 06-08-2012, 11:07 AM
skinny controller or skinny model? - by El Forum - 06-08-2012, 11:33 AM
skinny controller or skinny model? - by El Forum - 06-08-2012, 11:55 AM
skinny controller or skinny model? - by El Forum - 06-09-2012, 06:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB