我已经重新安装了系统,现在在zf2中出现问题时,我只能在ng.x错误日志,display_errors On和display_startup_errors On中看不到页面上的错误,在php.ini中,也许是我的php-fpm设置可以解决?
而且在zf2中没有的简单php文件中,我看到了错误!
最佳答案
您需要在配置中启用以下选项
'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true,
)
请记住在生产环境中关闭此功能
关于error-handling - 如何显示zf2错误?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13193550/