Welcome Guest, Not a member yet? Register   Sign In
My controller is huge
#3

[eluser]Aken[/eluser]
Sometimes controllers can be huge. It depends on what's going on throughout. You'd have to share it with us if you want specifics for your situation (use an online service such as Pastie or Github Gists).

Helpers and libraries are appropriate if you plan on using that particular code in more than one place. If you find yourself repeating code, these are certainly options.

Another solution to keeping things DRY is to use private/protected methods in the controller. That's a good way to separate things, also, if you really want to break apart a single method.


Messages In This Thread
My controller is huge - by El Forum - 07-20-2012, 05:41 AM
My controller is huge - by El Forum - 07-20-2012, 05:54 AM
My controller is huge - by El Forum - 07-20-2012, 03:48 PM



Theme © iAndrew 2016 - Forum software by © MyBB