Welcome Guest, Not a member yet? Register   Sign In
Unable to load libraries when using CI 3 with HMVC
#1

(This post was last modified: 03-08-2015, 06:59 AM by themban.)

I started a Modular project in CI2 (using HMVC). I am moving the project to CI 3.


I am trying to autoload the session library using config/autoload .php

Code:
$autoload['libraries'] = array('database','session');

I get this error:

Code:
Fatal error: Call to undefined method MY_Loader::_ci_load_class() in /srv/www/htdocs/projects/application/third_party/MX/Loader.php on line 158

Even if a manually load the library within the controller using $this->load->library('session'), i get the same error.

I am convinced this is an error caused by using HMVC. I have managed to make CI 3 modular but I am stuck with this issue, please help...

I can load helpers & models but I cant load libraries Sad
Reply


Messages In This Thread
Unable to load libraries when using CI 3 with HMVC - by themban - 03-08-2015, 06:58 AM



Theme © iAndrew 2016 - Forum software by © MyBB