1
我在我的application.ini
中设置了resources.frontController.throwExceptions = 1
(或者是true),但是这似乎并没有强制FrontController抛出异常。resources.frontController.throwExceptions = 1不会产生异常
当我在Zend库中明确地设置protected $_throwExceptions = true;
Front.php
时,我可以看到异常(网页上的输出)。
任何想法为什么配置设置不起作用?
当你说“see”时,你的意思是在视图中输出还是在调试时输出?另外,显式设置“$ _throwExceptions = false”与第一部分相矛盾 - 你的意思是“$ _throwExceptions = true”吗? – Cez 2010-03-29 09:44:30
是的,我的意思是$ _throwExceptions = true,对于混淆抱歉。 我在网页上看到异常信息输出。 – snovo 2010-03-29 15:02:50