Welcome Guest, Not a member yet? Register   Sign In
Call a controller function from another controller and pass that as view
#2

[eluser]danmontgomery[/eluser]
Nope, you can't call one controller from another. This breaks the MVC convention. You would have to use a modular solution like https://bitbucket.org/wiredesignz/codeig.../wiki/Home or https://bitbucket.org/wanwizard/modular-ci/

With those solutions, you're still not going to be able to exactly what you're trying, since controller methods aren't views. But, you can call methods from other controllers and pass that data into a view.


Messages In This Thread
Call a controller function from another controller and pass that as view - by El Forum - 06-14-2011, 11:35 AM



Theme © iAndrew 2016 - Forum software by © MyBB