我想在错误的路由后返回404错误而不是php Fatal Error长消息。
Fatal error: Uncaught exception 'Zend\View\Exception\RuntimeException'
with message 'No RouteMatch instance provided' i
我该怎么做?
答案 0 :(得分:0)
在应用程序模块中的module.config数组中更改此内容:
'error/404' => __DIR__ . '/../view/error/404.phtml'
或者只需编辑404.phtml
视图文件:
Application/view/error/404.phtml