I created a customized config file called config2 and autoload it in autoload.php. In my model, i just use $this->config->item('item_in_config2'), it works well. However, in my paypal library, i tried to use the same thing like this:
$this->PROXY_HOST = $this->config->item['paypal_proxy_host'];
an error occur: undefined property $config. Then i tried to add parent::__construct(); under library constructor, server error shows. Previously, i load the config2 manually and it worked well, but i really want to autoload it now. any ideas? thanks