Welcome Guest, Not a member yet? Register   Sign In
Code igniter 3 load controller in library
#1

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.
Reply
#2

@michaelh613,

Did you upgrade the code and run into this issue or are you rewriting the application in CI3?
Reply
#3

Libary must be call with created library class for example
$this->load->library('Someclass');
Reply




Theme © iAndrew 2016 - Forum software by © MyBB