在线上传时找不到文件/页面
我正在开发现有项目的新模块。这是一个用PHP Zend Framework开发的网站。新模块位于管理端。它在我的本地主机/虚拟主机上正常运行。 当我使用正确的目录路径在线上传时,发现找不到一个文件。 它被称为像
www.example.com/admin/controllerName/actionName
所有操作均有效,但有一个操作不显示任何内容并返回异常错误,指出未找到该页面或文件。 可能是什么问题?我检查过文件夹。如果同一控制器的一项操作有效,那么为什么其他操作无效。两者的“视图”部分都有其 .phtml 文件。
如有帮助,将不胜感激。
I am working on a new module of existing live project. It is a website developed in PHP Zend Framework. New module is on admin side. It runs properly on my localhost/virtualhost.
When I uploaded it online with correct directory path it is found that one file is not found.
It is called like
www.example.com/admin/controllerName/actionName
All the actions works except one action that doesn't display anything and returns exception error mentioning that page or file not found.
What could be the issue? I have checked folders. If one action for the same controller works than why doesn't other. Both have their .phtml files in View section.
Help would be appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果我猜你本地的开发环境是Windows,我猜对了吗?
这可能是文件名大小写敏感问题。
假设您的请求看起来像
我不确定您如何设置模块,但如果它是相当标准的,您应该有类似的内容(注意大小写字符)
控制器类名应该是
Admin_FusionmapsController
with actionpublic function newpageAction()
视图脚本应该位于
Would I be right if I guessed your local development environment was Windows?
It's probably a filename case sensitivity issue.
Assuming your request looks like
I'm not sure how you've setup your modules but if it's reasonably standard, you should have something like this (note the upper and lowercase characters)
The controller classname should be
Admin_FusionmapsController
with actionpublic function newpageAction()
The view script should be at