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
解决了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
相关文章推荐
- CI框架中Unable to locate the model you have specified:*_model解决方法
- 【PHP】Codeigniter : Unable to locate the model you have specified
- CodeIgniter Unable to locate the model you have specified
- Unable to locate the model you have specified: xxxx_model
- Unable to locate the model you have specified
- CI 3.0.0 Unable to locate the model you have specified:*_model
- Unable to locate any of the following operational binaries 解决方法
- ADO.NET Entity Framework “Unable to load the specified metadata resource”解决方法
- Connector/Net 连接 MySQL远程服务器出现 "Unable to connect to any of the specified MySQL hosts" 解决方法
- CodeIgniter-3.0.0 Unable to locate the specified class: Session.php
- E: Unable to correct problems, you have held broken packages 解决方法
- Maven出现 Unable to locate the Javac Compiler in解决方法
- The Eclipse executable launcher was unable to locate its companion launcher jar的解决方法
- iOS开发79-Xcode报错:The file “XXX” couldn’t be opened because you don’t have permission to view it.的解决方法
- Entity Framework出现System.Data.MetadataException: Unable to load the specified metadata resource的解决方法
- E: Unable to correct problems, you have held broken packages.的解决方法
- 关于“Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item.”问题的解决
- The file “XXX” couldn’t be opened because you don’t have permission to view it.解决方法:
- Maven出现 Unable to locate the Javac Compiler in解决方法
- 解决"Sorry, but you don’t have the administrative privileges needed to do this."的方法 wordpress, pagelines, eco