Calling a controllers method from an external library? |
[eluser]slapyo[/eluser]
I'm trying to write a CLI script. I have this library and load it in a controllers method. https://github.com/petewarden/ParallelCurl It asks for a passback function. I obviously can't just call the function I want with just it's name. I'm aware I'll probably have to adjust the library. Can I pass $this or should I save a copy as $obj or $that and pass that. I'll change the function call to array($this, $method). It doesn't seem to be working though. There is no out put, its all processing data and saving things to a database and sending emails. Do I need to load CI in the library? Any help would be appreciated. |
Welcome Guest, Not a member yet? Register Sign In |