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 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分