• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme ¬© 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.