Welcome Guest, Not a member yet? Register   Sign In
controller functions best practice
#4

[eluser]RaGe10940[/eluser]
Yea pretty much what Fuzzy said, my controller for my dash board is fat and ugly. In there I have function to check access rights, functions for all 7 of my pages that my app serves out. Logging out, I also have a function to redirect to another fat controller if need be. And going against what Fuzzy had already told me, in my case my controllers are fat usually. Even though the Model should be fatter since it does all the business logic, in my case my model does all the data gathering logic Tongue

So don't worry about have x amount of functions in a single controller Smile


Messages In This Thread
controller functions best practice - by El Forum - 04-08-2013, 03:32 AM
controller functions best practice - by El Forum - 04-08-2013, 03:49 AM
controller functions best practice - by El Forum - 04-08-2013, 04:37 AM
controller functions best practice - by El Forum - 04-08-2013, 04:45 AM
controller functions best practice - by El Forum - 04-08-2013, 07:13 AM
controller functions best practice - by El Forum - 04-11-2013, 05:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB