|

楼主 |
发表于 2016-3-28 15:13:32
|
显示全部楼层
估计是大小写的问题,于是修改了 Loader.php 似乎有效。
暂时没有更新服务器,有待测试
1, 增加了ucfirst
public function is_loaded($class)
{
if (isset($this->_ci_classes[ucfirst($class)]))
{
return $this->_ci_classes[ucfirst($class)];
}
return FALSE;
}
2,strtolower 改成 ucfirst
if ($subdir == '')
{
// $path = strtolower($class).'/'.$class;
$path = ucfirst($class).'/'.$class;
return $this->_ci_load_class($path, $params);
}
// If we got this far we were unable to find the requested class.
// We do not issue errors if the load call failed due to a duplicate request
if ($is_duplicate == FALSE)
{
log_message('error', "Unable to load the requested class : ".$class);
show_error("Unable to load the requested class : ".$class);
} |
|