【发布时间】:2012-04-24 12:11:24
【问题描述】:
当symfony 2出现异常时会输出如下页面:
Oops! An Error Occurred
The server returned a "404 Not Found".
Something is broken. Please e-mail us at [email] and let us know what you were doing when this error occurred. We will fix it as soon as possible. Sorry for any inconvenience caused.
- 该页面的模板在哪里?
- 在哪里可以配置要在此处显示的电子邮件?
编辑: 我不是在问如何覆盖这里看到的模板: http://symfony.com/doc/current/cookbook/controller/error_pages.html
我在问如何告诉 symfony 我希望它使用的邮件地址(假设它是可能的),我已经问过模板在哪里,所以我可以看到自己如何做到这一点,如果可能的话。
请回答问题正文而不是标题!
【问题讨论】:
-
@KingCrunch 问题已更新...我当然见过!
-
好的,谢谢,你可以写成答案,我会接受的
标签: exception error-handling symfony twig