How to tweak system/database/DB_cache.php |
Hello,
I need to make few changes in write() method but I do not want to change it in system folder because of possible updates etc. Is there any way I can tweak the function without changing the main file in system folder?
Depending on the file you should be able to extend it and make your changes with the MY_ prefix.
MY_Router MY_Input etc; If file is in ./system/core it goes in ./application/core If file is in ./system/libraries it goes in ./application/libraries What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
From what the documentation says is that you cannot extend the database files.
You can create your own database drivers but not sure where the code is that you need to edit and change. What did you Try? What did you Get? What did you Expect?
Joined CodeIgniter Community 2009. ( Skype: insitfx )
(02-19-2018, 06:47 AM)DeiForm Wrote: File is in ./system/database/ I found and impelemented following solution here https://github.com/bcit-ci/CodeIgniter/w...se-Drivers: in application/core/MY_DB_mysqli_driver.php: PHP Code: <?php if (! defined('BASEPATH')) exit('No direct script access allowed'); PHP Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); |
Welcome Guest, Not a member yet? Register Sign In |