Php Zend Framework中未找到文件错误

Php Zend Framework中未找到文件错误,php,zend-framework,Php,Zend Framework,我没有注意到确切的时间,但在今天的编码会话中,出现了一个错误: Not Found The requested URL /index.php was not found on this server. Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request. 每当我提交表单时,都会显示此信息。表单已得到适当处理,但视图未正确显

我没有注意到确切的时间,但在今天的编码会话中,出现了一个错误:

Not Found

The requested URL /index.php was not found on this server.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
每当我提交表单时,都会显示此信息。表单已得到适当处理,但视图未正确显示。它只是显示我的默认布局,下面有这个错误


帮助?

404消息可能有很多原因。主要是路径设置问题

检查配置文件夹中的application.ini文件,确保路径正确 控制器和布局的设置

resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.layout.layoutPath = APPLICATION_PATH "/views/layouts/"
将错误控制器设置为定义自定义消息或404文件。 您还可以在.htaccess文件中进行设置

ErrorDocument 404 /misc/404page.html

如果表单处理正确,则表示控制器路径正常。您必须确保您的视图存在,并且具有正确的路径

404消息可能有很多原因。主要是路径设置问题

检查配置文件夹中的application.ini文件,确保路径正确 控制器和布局的设置

resources.frontController.controllerDirectory = APPLICATION_PATH "/controllers"
resources.layout.layoutPath = APPLICATION_PATH "/views/layouts/"
将错误控制器设置为定义自定义消息或404文件。 您还可以在.htaccess文件中进行设置

ErrorDocument 404 /misc/404page.html

如果表单处理正确,则表示控制器路径正常。您必须确保您的视图存在,并且具有正确的路径

我发现了问题。我没有定义操作。当我第一次查看“转发操作”时,我认为它只是显示了一些其他视图,但实际上它将脚本转到另一个操作,而不更改URL。

我发现了问题。我没有定义操作。当我第一次查看“转发操作”时,我想,它只是显示一些其他视图,但实际上它将脚本带到另一个操作,而不更改URL