标签: php oop error-handling
我对OOP和课程都很陌生。我正在努力的一件事是,如果类的方法中存在错误,则不会显示错误消息,页面就会中断。有谁知道为什么这是或如何让这显示错误?
答案 0 :(得分:1)
http://us.php.net/manual/en/function.error-reporting.php
将它放在包含您的课程的页面顶部。
<?php error_reporting(E_ALL); ?>