Welcome Guest, Not a member yet? Register   Sign In
Autoload cache drivers
#1

[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.


Messages In This Thread
Autoload cache drivers - by El Forum - 10-24-2012, 07:26 AM
Autoload cache drivers - by El Forum - 10-24-2012, 07:48 AM
Autoload cache drivers - by El Forum - 10-24-2012, 10:07 AM
Autoload cache drivers - by El Forum - 11-05-2012, 11:50 AM
Autoload cache drivers - by El Forum - 11-06-2012, 01:39 AM



Theme © iAndrew 2016 - Forum software by © MyBB