gpt4 book ai didi

error-handling - 如何显示zf2错误?

转载 作者:行者123 更新时间:2023-12-03 08:02:41 24 4
gpt4 key购买 nike

我已经重新安装了系统,现在在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/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com