Extending redis library - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=11) +--- Thread: Extending redis library (/showthread.php?tid=74521) |
Extending redis library - fabby - 10-05-2019 I tried extending the redis library without any success. Error: Severity: error --> Exception: Class 'CI_Cache_redis' not found /var/www/vhosts/***.net/***.net/application/libraries/MY_redis.php 5 Redis library is loaded and functional, just extending seems not possible. PHP Code: <?php RE: Extending redis library - dave friend - 10-05-2019 Out of the box, database classes can not be extended or replaced with your own classes as all other classes can. In other words, the MY_ convention does not apply to the database files. I think you would have to extend the CI_Loader class and/or register an autoloader that can locate db driver files. |