开发者

Zend: class not found?

It's the first time I'm trying to deploy a ZF application on a server.

The problem I'm getting is that it doesn't seem to be able to find a class I've created. Here's the error message:

Fatal error: Class 'Form_Installation_Admin' not found in /home/mingos/public_html/bugraid/application/modules/installation/controllers/IndexController.php on line 46

Form_Installation_Admin can be found in /application/forms/installation/Admin.php and it works on my local server (ie, all the classes are found with no problems). However, on the shared host, it appears that the application doesn't quite know how to resolve the locations of my apps. The same is true for all the forms in subdirectories of /forms/, but does not happen to the forms placed directly in the /forms开发者_StackOverflow社区/ directory and named Form_FormName.

What could be the cause and how to fix this (apart from placing all forms in the /forms/ dir)?


OK, hate to answer my own question, but the answer was rather trivial.

My local server runs on Windows. Windows seems to be case-insensitive when parsing the class name. My hosted account is on a server running on Linux, which is case sensitive. Renaming the /forms/installation directory to /folder/Installation did the trick.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜