未找到 Zend 模型
我在使用 Zend 时遇到了一个奇怪的问题。我有一个在本地主机上运行良好的应用程序,并且也可以使用我的 IP 地址从外部访问它。当我将其移动到临时服务器时,它无法加载任何类。我正在使用具有模块化结构的自动加载。所有模型都位于默认模块中,然后是模型文件夹中。静态页面工作正常,但任何尝试访问模型的操作都会失败,并显示“致命错误:在(控制器路径和名称)中找不到类‘Default_Model_ModelName’”。我已经检查了服务器,所有文件都在那里并且与本地主机上的完全相同。有谁对如何解决此问题或可能发生的情况有任何想法?我已经调查了我能想到的一切,但在任何地方都看不到任何问题。提前致谢!
I'm having a strange problem with Zend. I have an application that works great on localhost, and can access it from outside using my IP address as well. When I move it to our staging server, it fails to load any of the classes. I am using autoloading with a modular structure. All the models are in the Default module, then the models folder. Static pages work fine, but anything that tries to access a model fails with "Fatal error: Class 'Default_Model_ModelName' not found in (Controller Path & Name)". I have checked the server and all files are there and are exactly as they were on localhost. Does anyone have any ideas on how to resolve this issue or what may be happening? I've looked into everything I can think of and can't see any problems anywhere. Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
需要检查的一些项目:
Some items to check: