[英]Call to undefined method MY_Loader::_ci_load_library()
I'm new to Codeigniter, and currently I just installed Codeigniter 2.2.0 with HMVC and ORM Datamapper version 1.8.2 .我是 Codeigniter 的新手,目前我刚刚安装了带有 HMVC 和 ORM Datamapper version 1.8.2 的 Codeigniter 2.2.0 。
I'm sure I have installed the ORM correctly, but when I test the Link, It give me this我确定我已经正确安装了 ORM,但是当我测试链接时,它给了我这个
Fatal error: Call to undefined method DM_Loader::_ci_load_library() in ...\application\third_party\MX\Loader.php on line 173
and, this is what inside loader.php而且,这就是 loader.php 里面的内容
if ($path === FALSE)
{
$this->_ci_load_library($library, $params, $object_name);
}
I'm sure had rename some protected in third_party/MX/Router.php
and had added the code in index.php
some codes below我确定在
third_party/MX/Router.php
重命名了一些受保护的代码,并在index.php
添加了下面的一些代码
/*
* --------------------------------------------------------------------
* LOAD THE BOOTSTRAP FILE
* --------------------------------------------------------------------
*
* And away we go...
*
*/
require_once APPPATH.'third_party/datamapper/bootstrap.php';
require_once BASEPATH.'core/CodeIgniter.php';
your answer is my enlightment.你的回答是我的启蒙。 thank you.
谢谢你。
Need change some field of Session Variables in config.php
(application/config/config.php)需要更改
config.php
(application/config/config.php) 中会话变量的某些字段
$config['sess_driver'] = 'files';
$config['sess_cookie_name'] = 'ci_session';
$config['sess_expiration'] = 7200;
$config['sess_save_path'] = 'ci_sessions';;
$config['sess_match_ip'] = FALSE;
$config['sess_time_to_update'] = 300;
$config['sess_regenerate_destroy'] = FALSE;
Opened the file and went to line 173 and changed打开文件并转到第 173 行并更改
$this->_ci_load_library($library, $params, $object_name);
to到
$this->_ci_load_class($library, $params, $object_name);
to match the only loading class I could see in the parent class CI_Loader that would make sense.匹配我可以在父类 CI_Loader 中看到的唯一加载类。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.