Welcome Guest, Not a member yet? Register   Sign In
using other controller's method
#5

[eluser]Phil Sturgeon[/eluser]
Directly calling controllers from other controllers is like bending MVC over a barrel and cracking out a truncheon... That is a horrible way to work and if you find yourself needing to do it then you are clearly doing something wrong.

Either share your code in a library so the logic can be used correctly in both controllers, or redirect users to the correct controller.


Messages In This Thread
using other controller's method - by El Forum - 04-19-2010, 06:14 AM
using other controller's method - by El Forum - 04-19-2010, 07:20 AM
using other controller's method - by El Forum - 04-19-2010, 07:33 AM
using other controller's method - by El Forum - 04-19-2010, 08:48 AM
using other controller's method - by El Forum - 04-19-2010, 09:12 AM



Theme © iAndrew 2016 - Forum software by © MyBB