更新时间:2022-06-15 23:13:20
框架的 MVC 组件的内部错误处理只能捕获异常,不能捕获 PHP 错误.
The internal error handling of the framework's MVC components can only trap Exceptions, not PHP errors.
为了在开发过程中协助调试,可以使用标准:
To assist in debugging during development, you can use the standard:
error_reporting(E_ALL|E_STRICT);
ini_set('display_errors', 'on');
此外,如果您使用的是 1.8 附带的新自动加载器,请使用:
Also, if you're using the new Autoloader included with 1.8, use:
Zend_Loader_Autoloader::getInstance()->suppressNotFoundWarnings(false);
允许发出失败的包含/要求语句.
To allow failed include/require statements to be issued.