Welcome Guest, Not a member yet? Register   Sign In
Auto load cache driver with parameters
#1

I know I can load a particular caching driver in a controller with options as second parameters:
Code:
$this->load->driver('cache', array('adapter' => 'apc', 'backup' => 'file'));

I wonder if is there any way to auto load the same using autoload.php under application/config as I can specify
Code:
$autoload['drivers'] = array('cache');

but unable to pass parameters here. So my question is how can I autoload caching driver with specifying some parameters along with?
Reply


Messages In This Thread
Auto load cache driver with parameters - by amit - 06-20-2015, 06:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB