Unable to locate the model you have specified:*_model 解决方法
今天把一个codeigniter程序部署到linux(centos)下的nginx的时候出现了Unable to locate the model you have specified:*_model这个问题
在网站找了半天也没解决 值得庆幸的是论坛管理员(CodeIgniter 中国 )给我了解决方案 现在吧解决方法贴出了
Unable to locate the model you have specified
坑爹的CI 3.0文件名是要强制首字母大写。 如果CI版本是3.0请绕过楼上的官方解说。 排除命名问题后,还是出现这个问题该怎么办呢? 我也派出了命名问题后,还有这个提示!!! 其实网站上问这个问题的还是蛮多的 我也是这样,解决没有?在本地可以,放服务器nginx下就不行了 看来了,谢 多谢楼主分享解决方法 {:1_1:} 谢谢了 不错的回答 还真是这个问题,已经解决,不过新问题也挺多的。。。。。 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);
system/libraries/Migration.php:207: $class = 'Migration_' . ucfirst(strtolower($migration));
页:
[1]
2