用户
 找回密码
 入住 CI 中国社区
搜索
查看: 24227|回复: 11
收起左侧

[已解决] Unable to locate the model you have specified:*_model 解决方法

[复制链接]
发表于 2011-7-21 15:40:47 | 显示全部楼层 |阅读模式
今天把一个codeigniter程序部署到linux(centos)下的nginx的时候出现了
Unable to locate the model you have specified:*_model  这个问题
在网站找了半天也没解决 值得庆幸的是论坛管理员(CodeIgniter 中国 )给我了解决方案 现在吧解决方法贴出了

QQ截图20110721153855.png
3.png


Unable to locate the model you have specified
发表于 2015-11-12 11:08:15 | 显示全部楼层
坑爹的CI 3.0文件名是要强制首字母大写。 如果CI版本是3.0请绕过楼上的官方解说。
发表于 2016-2-29 15:42:38 | 显示全部楼层
排除命名问题后,还是出现这个问题该怎么办呢?
发表于 2016-6-28 10:46:14 | 显示全部楼层
我也派出了命名问题后,还有这个提示!!!
发表于 2011-7-21 15:43:24 | 显示全部楼层
其实网站上问这个问题的还是蛮多的
发表于 2011-8-10 12:33:19 | 显示全部楼层
我也是这样,解决没有?在本地可以,放服务器nginx下就不行了
发表于 2011-8-10 12:39:09 | 显示全部楼层
看来了,谢
发表于 2011-9-29 10:22:09 | 显示全部楼层
多谢楼主分享解决方法
发表于 2012-3-29 13:27:31 | 显示全部楼层
发表于 2012-8-2 13:53:14 | 显示全部楼层
谢谢了 不错的回答
发表于 2012-9-17 13:39:21 | 显示全部楼层
还真是这个问题,已经解决,不过新问题也挺多的。。。。。
发表于 2012-9-17 17:37:47 | 显示全部楼层
CI源码中出现Ucfirst的地方,大写就这些地方需要注意
system/core/Loader.php:301:                     $model = ucfirst($model);
system/core/Loader.php:628:                     $library = ucfirst($library).'/'.$library;
system/core/Loader.php:899:             foreach (array(ucfirst($class), strtolower($class)) as $class)
system/core/Loader.php:906:                             $baseclass = BASEPATH.'libraries/'.ucfirst($class).'.php';
system/core/Loader.php:1029:                                    elseif (defined('ENVIRONMENT') AND file_exists($path .'config/'.ENVIR
system/core/Loader.php:1031:                                            include($path .'config/'.ENVIRONMENT.'/'.ucfirst(strtolower($
system/core/Loader.php:1039:                                    elseif (file_exists($path .'config/'.ucfirst(strtolower($class)).'.ph
system/core/Loader.php:1041:                                            include($path .'config/'.ucfirst(strtolower($class)).'.php');
system/libraries/Driver.php:48:         $lib_name = ucfirst(strtolower(str_replace('CI_', '', $this->lib_name)));
system/libraries/Driver.php:60:                                 foreach (array(ucfirst($driver_name), $driver_name) as $class)
system/libraries/Migration.php:168:                             $class = 'Migration_' . ucfirst($match[1]);
system/libraries/Migration.php:207:                     $class = 'Migration_' . ucfirst(strtolower($migration));

本版积分规则