CodeIgniter Forums

Full Version: Code igniter 3 load controller in library
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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.
@michaelh613,

Did you upgrade the code and run into this issue or are you rewriting the application in CI3?
Libary must be call with created library class for example
$this->load->library('Someclass');