我一直在Mac上使用CodeIgniter开发Web应用程序,没有任何问题.我正在使用Ion Auth库进行用户身份验证.我没有将该站点移植到生产服务器,并且出现以下错误:
I have been developing a web application using CodeIgniter on my Mac with no issues whatsoever. I am using the Ion Auth library for user authentication. I have no ported the site the production server and I am getting the following error:
An Error Was Encountered Unable to locate the model you have specified: Ion_auth_model此处的所有帖子似乎都是文件放置或文件名或类名的情况.我已经四重检查了离子授权模型代码.
All of the posts on here seem to be file placement or the case of the filename or class name. I have quadruple checked the ion auth model code..
/application/models/ion_auth_model.php
/application/models/ion_auth_model.php
class Ion_auth_model extends CI_Model{ ... }加载模型的唯一位置在ion auth库中:
The only place the model is loaded is in the ion auth library:
/applicaiton/libraries/ion_auth.php
/applicaiton/libraries/ion_auth.php
$this->load->model('ion_auth_model');最令人沮丧的是-它在我的开发系统上完美运行.产品和开发环境之间的唯一区别是数据库配置(我现在甚至在开发模式下都拥有它,所以我可能会看到一个错误.
And most frustratingly - it works perfectly on my development system. The only differences between my prod and dev environments is the database config (I even have it in development mode now so I might seen an error.
没有日志条目,页面上没有任何有用的错误,CodeIgniter根本没有任何帮助来指示错误的出处.
No log entry, no helpful error on the page, no help at all from CodeIgniter to direct me where the error is coming from.
任何人都可以指出正确的方向来解决此问题吗??
Can anyone point me in the right direction to troubleshoot this????
推荐答案如注释中所述:模型的文件名必须以大写字母开头.您的情况是Ion_auth_model.php.
As said in the comments : Your model's filename must start with an uppercase. In your case, Ion_auth_model.php.
请参见 codeigniter/userguide3/changelog.html#version-3-0-0
更改了文件命名约定(类文件名现在必须为Ucfirst以及其他所有小写字母.
changed filenaming convention (class file names now must be Ucfirst and everything else in lowercase).
更多推荐
故障排除代码点火器“无法找到您指定的型号...";错误
发布评论