Welcome Guest, Not a member yet? Register   Sign In
Calling a library function from a library?
#1

[eluser]CARP[/eluser]
Hi guys
I've been trying to do a "common_routines" library and succeeded.
Now, I've created a new function in this library, and now I need to get a value, for example

Code:
$this->config->item('my_variable')

The problem is that I can't refer to $this inside my custom library...
How would you solve this easy (not easy for me) problem?

Thanks,
#2

[eluser]Seppo[/eluser]
Code:
$CI =& get_instance();
$CI->config->item
#3

[eluser]CARP[/eluser]
You da man.
I'm glad to help you increase your post count lol Big Grin




Theme © iAndrew 2016 - Forum software by © MyBB