Welcome Guest, Not a member yet? Register   Sign In
Logic of controllers and how to seperate them
#1

[eluser]UnforgiveNX[/eluser]
Hi all,

I'm a bit confused about the controller structure. I'll give an example to my issue.

Say that I'm building a community site. A user comes and logs in. Users can send messages to each other. Now;

I have a auth controller which has "login, logout, register, forget_pass etc." functions.

When it comes to messaging, should I have a seperate controller as "message" which has "send_message, list_messages etc." methods, or should I use the previous "auth" controller to manage the messages? I can do this in both ways as obvious.

How should I decide about creating a controller?

Thanks


Messages In This Thread
Logic of controllers and how to seperate them - by El Forum - 09-09-2009, 02:51 AM
Logic of controllers and how to seperate them - by El Forum - 09-09-2009, 02:55 AM
Logic of controllers and how to seperate them - by El Forum - 09-09-2009, 03:00 AM
Logic of controllers and how to seperate them - by El Forum - 09-09-2009, 08:28 AM
Logic of controllers and how to seperate them - by El Forum - 09-09-2009, 09:42 AM



Theme © iAndrew 2016 - Forum software by © MyBB