Zend Framework:找不到模型类 [英] Zend Framework: Model class not found

查看:79
本文介绍了Zend Framework:找不到模型类的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的服务器上引发了以下异常:
致命错误:在...中找不到类'My_Model_Bo_User_Agenda_Doctors' 尽管在localhost中,一切正常.

The following exception is thrown on my server:
Fatal error: Class 'My_Model_Bo_User_Agenda_Doctors' not found in...
Though in localhost everything is working fine.

我检查了所有内容均已正确上传;所有文件都存在并且没有损坏.我也尝试上传几次.因此,这似乎不是问题.

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 ?

推荐答案

您在问题中并未这样说,但我怀疑您是在Windows上进行开发并在Linux上进行托管.

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! Check that:-

  1. Doctors.php不是 doctors.php
  2. 议程/不是议程/.etc
  3. 最后检查类声明中的类名称正确且大小写正确.
  1. Doctors.php is not doctors.php
  2. Agenda/ is not agenda/ .etc
  3. Lastly check the class name in the class declaration is correct and correctly cased.

不要只是想想自己,是的,我已经做到了,请仔细检查一下.相信我,痛苦的经验告诉我,这个问题总是由于这样的琐碎疏忽造成的.

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.

这篇关于Zend Framework:找不到模型类的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆