[eluser]Unknown[/eluser]
Good evening everyone,
I have a problem since a few days.
I would instantiate the Cache class, but I can't do this with the autoload; I've put this configuration file:
Code:
$autoload['libraries'] = array('driver', 'acl');
but I can't use it. In every class or model, I should write this
Code:
$this->load->driver('cache', array('adapter' => 'apc', 'backup' => 'file'));
can I use
Code:
$this->ci =& get_instance();
$this->ci->cache->get('foo');
like I do with other classes? Because at the moment I can't do this, even in a personal class, for example.