Welcome Guest, Not a member yet? Register   Sign In
I'm at a standstill....need help with controllers (theory)
#2

[eluser]Bramme[/eluser]
The thing with MVC and CI is that it's all very loose. You really can chose which way you want to go with your controllers.

Personally, I break them up according to scenario three. I analyse the website I'm about to make and see how big it's gonna be.

So far, I usually put the frontend off a website in one controller (mind you, haven't done very large sites yet) and put the backend functionality in multiple controllers.

You say you're afraid your controllers will grow beyond what you intended them to be. I say, don't let them. Think, analyse and plan your application before you start coding it and make your controllers so you're comfortable with them. If you want to put everything in one and you're okay with it, great! If you feel you want separation, put everything in a separate one.


Messages In This Thread
I'm at a standstill....need help with controllers (theory) - by El Forum - 08-29-2008, 02:27 PM



Theme © iAndrew 2016 - Forum software by © MyBB