Zend Framework: Model class not found

前端 未结 1 1716
南旧
南旧 2020-12-12 07:48

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

相关标签:
1条回答
  • 2020-12-12 08:35

    You don't say so in your question, but I suspect that you are developing on windows and hosting on Linux.

    Windows is not case sensitive to path names, but Linux is! Check that:-

    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.

    0 讨论(0)
提交回复
热议问题