Welcome Guest, Not a member yet? Register   Sign In
How to use a function from a other controller?
#2

[eluser]Colin Williams[/eluser]
If you find yourself needing to call another controller's function, you've probably not built your controllers correctly. The function that needs calling typically is better suited as a model function. When you are checking credentials, you are essentially asking either, "What is the current state of the user?" or "Do these credentials match a user's?" Models represent the "state" of your application, i.e. resource data.

Short answer is: Put it in the model where it belongs.


Messages In This Thread
How to use a function from a other controller? - by El Forum - 08-13-2009, 05:01 PM
How to use a function from a other controller? - by El Forum - 08-13-2009, 05:34 PM
How to use a function from a other controller? - by El Forum - 08-13-2009, 05:45 PM
How to use a function from a other controller? - by El Forum - 08-13-2009, 05:58 PM
How to use a function from a other controller? - by El Forum - 08-13-2009, 06:01 PM
How to use a function from a other controller? - by El Forum - 08-13-2009, 06:16 PM
How to use a function from a other controller? - by El Forum - 08-13-2009, 06:22 PM
How to use a function from a other controller? - by El Forum - 08-13-2009, 06:25 PM
How to use a function from a other controller? - by El Forum - 08-13-2009, 10:34 PM



Theme © iAndrew 2016 - Forum software by © MyBB