0
如何隱藏它在瀏覽器中顯示的框架錯誤? 我搜索application.config,應用程序module.config試圖更改標誌和模板,但沒有效果。如何隱藏ZendFramework3提供的瀏覽器錯誤?
如何在瀏覽器中隱藏錯誤,但將它們留在控制檯中?
作爲服務器我現在使用在php5.6服務器建立
'view_manager' => [
'display_not_found_reason' => true,
'display_exceptions' => false,
'doctype' => 'HTML5',
'not_found_template' => 'error/404',
'exception_template' => 'error/index',
'template_map' => [
'layout/layout' => __DIR__ . '/../view/layout/layout.phtml',
'application/index/index' => __DIR__ . '/../view/application/index/index.phtml',
'error/404' => __DIR__ . '/../view/error/custom_404.phtml',
'error/index' => __DIR__ . '/../view/error/index.phtml',
],
'template_path_stack' => [
__DIR__ . '/../view',
],
],
謝謝你的回答,但第二個不起作用。我不知道爲什麼,但當我更改'display_exceptions'的標誌爲true或false時,結果保持不變 – NotAWizzard
我不確定爲什麼自從您將其設置爲false以來出現此錯誤,則需要在您的末端進行調試..你可以使用[1]選項來做到這一點。 –