![]() |
Code igniter 3 load controller in 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: Code igniter 3 load controller in library (/showthread.php?tid=71307) |
Code igniter 3 load controller in library - michaelh613 - 07-31-2018 In Code igniter 2.x if a controller function was needed from a library it could be loaded $this->CI->load->library('../controllers/class'); However in Code iginiter 3 I am getting an error message Unable to locate the specified class: Session.php Has anyone else had this issue to deal with. We are in the midst of an upgrade and I am trying to minimize the amount of code to be rewritten. RE: Code igniter 3 load controller in library - php_rocs - 07-31-2018 @michaelh613, Did you upgrade the code and run into this issue or are you rewriting the application in CI3? RE: Code igniter 3 load controller in library - Gurutechnolabs - 10-02-2018 Libary must be call with created library class for example $this->load->library('Someclass'); |