让CI显示PHP异常

WBOY
Release: 2016-06-13 10:40:33
Original
724 people have browsed it

让CI显示PHP错误

刚开始学习CI,发现有时候程序出错并时没有报告错误,而是显示一个空白页面,调试起来比较头疼。

?

想让它显示错误的话,在入口文件index.php中添加这行代码就好了

?

ini_set('display_errors',1);
Copy after login
Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!