Call a controller function from another controller and pass that as view |
[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:09 AM
Call a controller function from another controller and pass that as view - by El Forum - 06-14-2011, 11:35 AM
Call a controller function from another controller and pass that as view - by El Forum - 06-14-2011, 10:12 PM
|