[eluser]Michael Wales[/eluser]
I thought about that... if that is the case, well you obviously can't just use $this->config (unless you feel like writing a config class...
I'm not the most gangster OOP programmer, but what if you tried this:
Code:
var $CI;
var $imagick;
var $temppath;
var $newpath;
function __construct() {
$this->CI =& get_instance();
$this->imagick = $this->CI->config->item('path_imagemagick');
$this->temppath = $this->CI->config->item('path_tempdir');
$this->newpath = $this->CI->config->item('path_photosdir');
}
You will then just have to remember to refer to them as class variables.