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

[eluser]Colin Williams[/eluser]
Models manage your resources. Could be a database. Could be a web service. Could be a filesystem. They aren't database query monkeys. Nothing about the logic in your controller function is bad for the model. Sure, some may get picky about the model doing the redirect, but remember that the controller supplies the redirect instruction to the model. The model is simply telling the controller to redirect / redirecting on the controllers behalf. The logic that models don't do is application or business logic. For instance, models shouldn't route or call views or sanitize global values or do the validation process, etc.

And I can't even fathom what OOP fundamental you think you might be breaking.


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