• <small id='CLZSl'></small><noframes id='CLZSl'>

    1. <i id='CLZSl'><tr id='CLZSl'><dt id='CLZSl'><q id='CLZSl'><span id='CLZSl'><b id='CLZSl'><form id='CLZSl'><ins id='CLZSl'></ins><ul id='CLZSl'></ul><sub id='CLZSl'></sub></form><legend id='CLZSl'></legend><bdo id='CLZSl'><pre id='CLZSl'><center id='CLZSl'></center></pre></bdo></b><th id='CLZSl'></th></span></q></dt></tr></i><div id='CLZSl'><tfoot id='CLZSl'></tfoot><dl id='CLZSl'><fieldset id='CLZSl'></fieldset></dl></div>
    2. <tfoot id='CLZSl'></tfoot>
      <legend id='CLZSl'><style id='CLZSl'><dir id='CLZSl'><q id='CLZSl'></q></dir></style></legend>
      • <bdo id='CLZSl'></bdo><ul id='CLZSl'></ul>

        使用 Zend 框架时显示 php 错误

        Display php errors when using Zend framework(使用 Zend 框架时显示 php 错误)
        <tfoot id='dDheZ'></tfoot>

        • <bdo id='dDheZ'></bdo><ul id='dDheZ'></ul>

              <legend id='dDheZ'><style id='dDheZ'><dir id='dDheZ'><q id='dDheZ'></q></dir></style></legend>

              <small id='dDheZ'></small><noframes id='dDheZ'>

              <i id='dDheZ'><tr id='dDheZ'><dt id='dDheZ'><q id='dDheZ'><span id='dDheZ'><b id='dDheZ'><form id='dDheZ'><ins id='dDheZ'></ins><ul id='dDheZ'></ul><sub id='dDheZ'></sub></form><legend id='dDheZ'></legend><bdo id='dDheZ'><pre id='dDheZ'><center id='dDheZ'></center></pre></bdo></b><th id='dDheZ'></th></span></q></dt></tr></i><div id='dDheZ'><tfoot id='dDheZ'></tfoot><dl id='dDheZ'><fieldset id='dDheZ'></fieldset></dl></div>
                    <tbody id='dDheZ'></tbody>

                1. 本文介绍了使用 Zend 框架时显示 php 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

                  问题描述

                  我一直在使用 Zend Framework 并且遇到这个问题有一段时间了,但现在它变得太烦人了,所以我将问题发送给您.

                  I've been using Zend Framework and just living with this problem for a while, but it's now just gotten too annoying so i'll send the question out to you.

                  Zend 可以识别 Zend 框架内的某些问题(例如调用不存在的控制器),并将该问题发送到 ErrorController.我的工作正常.

                  There are certain problems within the Zend framework that Zend can recognize (such as calling a nonexistent controller), and will send that problem to the ErrorController. I've got that working fine.

                  似乎有一些问题,Zend Framework 会失败并通过 php 显示错误,例如某个函数不存在或什么的.那些我可以看到并修复的.

                  There seem to be some problems that Zend Framework will fail and display the error through php, like if a certain function doesn't exist or something. Those I can see and fix.

                  虽然有时 Zend 不会失败,但它也只会发送一个空响应.我会得到一个空白页.他们的布局没有显示,没有代码,没有任何东西可以让我知道出了什么问题.上次,有一个 require() 失败了.我不得不在没有反馈的情况下手动解决这个问题.

                  Sometimes though, Zend won't fail, but it will also just send out an empty response. I will get a blank page. They layout doesn't show up, there's no code, there's no nothing to give me an idea of what's gone wrong. Last time, there was a require() that failed. I had to manually figure this out with no feedback.

                  大家有没有遇到过这种情况?您对如何显示这些错误有什么建议吗?任何帮助将不胜感激!

                  Have any of you experienced this? Do you have any advice on how to get these errors to show? Any help would be appreciated!

                  推荐答案

                  框架的 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.

                  这篇关于使用 Zend 框架时显示 php 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

                  本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

                  相关文档推荐

                  DeepL的翻译效果还是很强大的,如果我们要用php实现DeepL翻译调用,该怎么办呢?以下是代码示例,希望能够帮到需要的朋友。 在这里需要注意,这个DeepL的账户和api申请比较难,不支持中国大陆申请,需要拥有香港或者海外信用卡才行,没账号的话,目前某宝可以
                  PHP通过phpspreadsheet导入Excel日期,导入系统后,全部变为了4开头的几位数字,这是为什么呢?原因很简单,将Excel的时间设置问文本,我们就能看到该日期本来的数值,上图对应的数值为: 要怎么解决呢?进行数据转换就行,这里可以封装方法,或者用第三方的
                  mediatemple - can#39;t send email using codeigniter(mediatemple - 无法使用 codeigniter 发送电子邮件)
                  Laravel Gmail Configuration Error(Laravel Gmail 配置错误)
                  Problem with using PHPMailer for SMTP(将 PHPMailer 用于 SMTP 的问题)
                  Issue on how to setup SMTP using PHPMailer in GoDaddy server(关于如何在 GoDaddy 服务器中使用 PHPMailer 设置 SMTP 的问题)
                  <tfoot id='PugL9'></tfoot>
                    <tbody id='PugL9'></tbody>

                      • <legend id='PugL9'><style id='PugL9'><dir id='PugL9'><q id='PugL9'></q></dir></style></legend>
                        • <bdo id='PugL9'></bdo><ul id='PugL9'></ul>

                          <small id='PugL9'></small><noframes id='PugL9'>

                          1. <i id='PugL9'><tr id='PugL9'><dt id='PugL9'><q id='PugL9'><span id='PugL9'><b id='PugL9'><form id='PugL9'><ins id='PugL9'></ins><ul id='PugL9'></ul><sub id='PugL9'></sub></form><legend id='PugL9'></legend><bdo id='PugL9'><pre id='PugL9'><center id='PugL9'></center></pre></bdo></b><th id='PugL9'></th></span></q></dt></tr></i><div id='PugL9'><tfoot id='PugL9'></tfoot><dl id='PugL9'><fieldset id='PugL9'></fieldset></dl></div>