Welcome Guest, Not a member yet? Register   Sign In
How to call a controller from another controller ?
#3

[eluser]Twisted1919[/eluser]
@WishBear - Wrong.
@Vivigeos - By default with CI you cannot achieve this in a clean way.
You can use a include() to include and instantiate the class controller you want to execute from within you controller, or you can use HMVC (search forums) which can do this for you and of course it will provide modularity to your CI .
L.E: Of course, you can create a blog library and create methods in it which you can call everywhere .


Messages In This Thread
How to call a controller from another controller ? - by El Forum - 02-16-2011, 10:04 AM
How to call a controller from another controller ? - by El Forum - 02-16-2011, 10:25 AM
How to call a controller from another controller ? - by El Forum - 02-16-2011, 10:37 AM
How to call a controller from another controller ? - by El Forum - 02-16-2011, 12:43 PM
How to call a controller from another controller ? - by El Forum - 02-16-2011, 03:27 PM
How to call a controller from another controller ? - by El Forum - 02-16-2011, 05:41 PM
How to call a controller from another controller ? - by El Forum - 02-17-2011, 06:04 AM
How to call a controller from another controller ? - by El Forum - 02-17-2011, 06:29 AM
How to call a controller from another controller ? - by El Forum - 02-17-2011, 06:58 AM
How to call a controller from another controller ? - by El Forum - 02-17-2011, 07:01 AM
How to call a controller from another controller ? - by El Forum - 02-17-2011, 07:02 AM
How to call a controller from another controller ? - by El Forum - 02-17-2011, 07:09 AM
How to call a controller from another controller ? - by El Forum - 02-17-2011, 08:07 AM



Theme © iAndrew 2016 - Forum software by © MyBB