如何显示zf2错误? [英] How to show zf2 errors?

查看:120
本文介绍了如何显示zf2错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经重新安装我的系统,现在当zf2出现错误时,我只能在nginx错误日志中看到页面上的错误,display_errors On和display_startup_errors On,在php.ini中,也许是与我的php-fpm设置?
在简单的php文件不在zf2我看到错误!

I've reinstall my system and now when something wrong in zf2 i cant see the error on the page only in nginx error log, the display_errors On and display_startup_errors On, in php.ini, maybe something with my php-fpm settings? And in the simple php file not in zf2 i have see the errors!

推荐答案

ini_set('display_errors',true); 在我的index.php中现在显示错误

ini_set('display_errors', true); in my index.php now show me the errors

这篇关于如何显示zf2错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆