Welcome Guest, Not a member yet? Register   Sign In
Pass variables from config to library
#3

[eluser]codex[/eluser]
[quote author="walesmd" date="1193430522"]You are missing the CI object in your variable declarations:

Code:
var $CI;
    var $imagick         = $this->CI->config->item('path_imagemagick');
    var $temppath         = $this->CI->config->item('path_tempdir');
    var $newpath         = $this->CI->config->item('path_photosdir');
[/quote]

I had already tried that (read it in another post), but it didn't work. Still doesn't...


Maybe I'm wrong, but isn't '$this->CI' only available AFTER the constructor?


Messages In This Thread
Pass variables from config to library - by El Forum - 10-26-2007, 09:06 AM
Pass variables from config to library - by El Forum - 10-26-2007, 09:28 AM
Pass variables from config to library - by El Forum - 10-26-2007, 09:33 AM
Pass variables from config to library - by El Forum - 10-26-2007, 09:45 AM
Pass variables from config to library - by El Forum - 10-26-2007, 09:49 AM



Theme © iAndrew 2016 - Forum software by © MyBB