Extending Drivers in 3.0 |
Is is possible to extend drivers in CI 3 as you would extend libraries in CI 2.x with the MY_ prefix?
For Instance i'm trying to extend the CI_Session_cookie library with a override to _sess_update so that ajax requests won't jack with the current user session. Code: <?php if ( ! defined('BASEPATH')) exit('No direct script access allowed'); I can't tell if it's been loaded since the 'MY_Session_cookie loaded' message is not being written to the log.
Session_cookie.php is located in system/libraries/Session/drivers/, your last line comment, "Location" points to application/libraries/Session/, are you missing a subdir "drivers"? Or is it just a mistake in the comment? And I assume logging is turned on? And configured to log at least INFO level?
Website: http://tomaz.lovrec.eu
GitHub: https://github.com/slax0rr Twitter: https://twitter.com/slax0rr
That was it, I had to move it into the drivers folder, thanks.
(11-11-2014, 07:18 AM)slax0r Wrote: Session_cookie.php is located in system/libraries/Session/drivers/, your last line comment, "Location" points to application/libraries/Session/, are you missing a subdir "drivers"? Or is it just a mistake in the comment? And I assume logging is turned on? And configured to log at least INFO level? |
Welcome Guest, Not a member yet? Register Sign In |