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

[eluser]CoderBoy[/eluser]
Ok thanks.

You cannot define Cache_memcached in libraries/Cache/drivers/Cache_memcached.php as you get the PHP redeclare class error.

I'll go down a similar route to you.

Code:
application/libraries/Cache/Drivers/MY_Cache_memcached.php

class MY_Cache_memcached extends Cache_memcached {

And then try overload /libraries/Driver.php.

Determined not to touch the core files. It took long enough to get a mix of

Code:
$config['enable_query_strings'] = TRUE;
$config['index_page'] = '';
$config['uri_protocol']    = 'AUTO';

to not display the ? in the URL.

http://127.0.0.1/?/controller/method

eventually to

http://127.0.0.1/controller/method

with still allowing

http://127.0.0.1/index.php?c=controller&m=method


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