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

[eluser]cartalot[/eluser]
My newbie perspective

start with a fat controller, and then as you test and develop -- push functions and code to the model when you know they are working --
to then make the controller skinnier and more elegant.

that way the controller is your main development area/ sandbox -- you arent trying to debug code in both the model and controller. and then the more code you push to the model, the easier it is is to see the overall logic going on in the controller.

another suggestion is to standardize the sections of your model, and try to follow or label them the same way.
like validation, insert, update, delete etc.


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