您的位置:首页 > 其它

CodeIgniter中Unable to locate the model you have specified:*_model解决方法

2013-01-06 10:44 459 查看
开发环境使用的windows, 部署到测试环境后使用的是Linux。

解决了url重写(去掉index.php)的问题后,点击其它页面出现

Unable to locate the model you have specified:*_model

的问题。

在codeigniter论坛搜索了一下,问题是由于windows和linux对文件名的处理不一致导致,

windows下文件名是不区分大小写的,但是Linux是严格区分大小写的。

解决办法:

修改所有的model:

1. 文件名全部小写,不能出现大小写混排 (all filenames need to be lowercase)

2. class model_name , model_name 只有第一个字母是大写,其余一律小写

修改后即可解决 Unable to locate the model you have specified:*_model 的问题

reference: http://ellislab.com/forums/viewthread/65923/#324059
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐