Welcome Guest, Not a member yet? Register   Sign In
Call a private controller method from within another controller
#4

[eluser]CroNiX[/eluser]
Sure, just like my code above does. Once you have access to the CI superglobal/instance, you can do anything you can normally do with CI.

Its not that hard to make a library from existing code. Mostly just copy/paste. Except everywhere that you use "$this" it would now be "$this->CI" assuming you instantiated it like I did above.


Messages In This Thread
Call a private controller method from within another controller - by El Forum - 01-16-2011, 12:41 PM



Theme © iAndrew 2016 - Forum software by © MyBB