Welcome Guest, Not a member yet? Register   Sign In
Newbie question: How do i reference another controller from a controller?
#5

[eluser]bretticus[/eluser]
@kgill is right. You wouldn't call a controller method from a different controller. A controller is pretty much only for being an entry point into your application (it controls what happens when a specific URI is employed.)

To accomplish what you are trying to do is most commonly performed through a library. There are several authentication libraries that you can just download for CodeIgniter. Or, of course, you can roll your own.

I understand why a users controller seems like a good fit with authentication. But really, you'll do better to separate what you can do to a user from the necessary authentication required to do so.


Messages In This Thread
Newbie question: How do i reference another controller from a controller? - by El Forum - 02-17-2010, 11:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB