Welcome Guest, Not a member yet? Register   Sign In
Cannot overload cache drivers (memcached)
#6

[eluser]CoderBoy[/eluser]
Hum I cannot seem to find a way to overload the Driver.php file

I was going to use similar logic to what has been used in

system/core/Loader.php

to get if it is a driver extension request or not.

Code:
$subclass = APPPATH.'libraries/'.$subdir.config_item('subclass_prefix').$class.EXT;

            // Is this a class extension request?
            if (file_exists($subclass))
            {
                $baseclass = BASEPATH.'libraries/'.ucfirst($class).EXT;

                if ( ! file_exists($baseclass))
                {
                    log_message('error', "Unable to load the requested class: ".$class);
                    show_error("Unable to load the requested class: ".$class);
                }

Going to implement what I am after another way for the time being.

I have a global helper class, going to have to put the function in there to prefix my cache keys and crawl though my code changing all occurrences.


Messages In This Thread
Cannot overload cache drivers (memcached) - by El Forum - 02-08-2011, 03:34 AM
Cannot overload cache drivers (memcached) - by El Forum - 02-09-2011, 05:57 AM
Cannot overload cache drivers (memcached) - by El Forum - 02-09-2011, 06:09 AM
Cannot overload cache drivers (memcached) - by El Forum - 02-09-2011, 06:29 AM
Cannot overload cache drivers (memcached) - by El Forum - 02-09-2011, 06:42 AM
Cannot overload cache drivers (memcached) - by El Forum - 02-09-2011, 07:03 AM



Theme © iAndrew 2016 - Forum software by © MyBB