[英]Zend Framework: Model class not found
The following exception is thrown on my server: 我的服务器上抛出以下异常:
Fatal error: Class 'My_Model_Bo_User_Agenda_Doctors' not found in... 致命错误:在...中找不到类“ My_Model_Bo_User_Agenda_Doctors”
Though in localhost everything is working fine. 虽然在localhost中一切正常。
I checked that everything was correctly uploaded; 我检查了所有内容是否正确上传; all the files are present and not corrupted.
所有文件都存在并且没有损坏。 I also tried to upload several times.
我也尝试上传几次。 So this doesn't seem to be the problem.
因此,这似乎不是问题。
Any idea why a class couldn't be found on the server ? 知道为什么在服务器上找不到类吗?
You don't say so in your question, but I suspect that you are developing on windows and hosting on Linux. 您在问题中没有这样说,但我怀疑您是在Windows上进行开发并在Linux上进行托管。
Windows is not case sensitive to path names, but Linux is! Windows对路径名不区分大小写,但是Linux对路径名敏感! Check that:-
检查:
Do not just think to yourself, yes I've done that, go and check them carefully. 不要只是想想自己,是的,我已经做到了,请仔细检查一下。 Believe me, bitter experience has taught me this problem is always due to a trivial oversight like this.
相信我,痛苦的经历教会了我这个问题,总是由于这样的琐碎疏忽。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.