CodeIgniter Forums
Unable to load a third_party driver - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forum-5.html)
+--- Forum: Libraries & Helpers (https://forum.codeigniter.com/forum-11.html)
+--- Thread: Unable to load a third_party driver (/thread-75230.html)



Unable to load a third_party driver - vkrishn - 01-15-2020

Hi,

I am trying to add a driver, as in
eg, https://codeigniter.com/user_guide/libraries/sessions.html#custom-drivers

but instead of adding in ,
  application/libraries/Session/drivers/Session_dummy_driver.php
would like to place/package it under say,
  application/third_party/package1/libraries/Session/drivers/Session_dummy_driver.php

Currently trying in codeigniter-v3.1.11, but unable to load it.

Any help would be appreciated.

Thanks,
V.Krishn


RE: Unable to load a third_party driver - jreklund - 01-15-2020

It's hardcoded. So you can't use the autoload without placing in that folder. You can however create a package in your third_party folder. But you need to load that package every time you need it.
https://codeigniter.com/user_guide/libraries/loader.html