Welcome Guest, Not a member yet? Register   Sign In
How to call a function in CI
#3

[eluser]CroNiX[/eluser]
I think you need to differentiate between "functions" and "methods". Functions are standalone, like trim($var). Methods are "functions" within classes, and require the class to work, $this->method_name.

With CI Controllers, you can't access a controller method outside of the current controller class, unless you use HVMC or something (which isn't standard).



Messages In This Thread
How to call a function in CI - by El Forum - 10-16-2012, 06:41 AM
How to call a function in CI - by El Forum - 10-16-2012, 10:30 AM
How to call a function in CI - by El Forum - 10-16-2012, 10:50 AM
How to call a function in CI - by El Forum - 10-16-2012, 10:58 AM
How to call a function in CI - by El Forum - 10-16-2012, 11:00 AM
How to call a function in CI - by El Forum - 10-16-2012, 11:20 AM



Theme © iAndrew 2016 - Forum software by © MyBB