douli6605 2015-03-08 14:18 采纳率: 100%
浏览 76
已采纳

使用带有HMVC的CI 3时无法加载库

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

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

I get this error:

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 :(

  • 写回答

1条回答 默认 最新

  • drbi19093 2015-03-08 15:09
    关注

    I think you have wrong version of HMVC you need to download the latest version https://bitbucket.org/wiredesignz/codeigniter-modular-extensions-hmvc/downloads

    Click on branches and you will see 2 versions.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 这个主板怎么能扩出一两个sata口
  • ¥15 不是,这到底错哪儿了😭
  • ¥15 2020长安杯与连接网探
  • ¥15 关于#matlab#的问题:在模糊控制器中选出线路信息,在simulink中根据线路信息生成速度时间目标曲线(初速度为20m/s,15秒后减为0的速度时间图像)我想问线路信息是什么
  • ¥15 banner广告展示设置多少时间不怎么会消耗用户价值
  • ¥16 mybatis的代理对象无法通过@Autowired装填
  • ¥15 可见光定位matlab仿真
  • ¥15 arduino 四自由度机械臂
  • ¥15 wordpress 产品图片 GIF 没法显示
  • ¥15 求三国群英传pl国战时间的修改方法