From dcaf75eb1f95f7d7bb431d03ab1a184bcf017e7d Mon Sep 17 00:00:00 2001 From: Matthew Weier O'Phinney Date: Tue, 28 Feb 2012 00:24:42 -0600 Subject: [PATCH] [#1] Added displayNotFoundReason config setting - Based on PR #851 --- .../manual/en/module_specs/zend.view.quick-start.xml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/documentation/manual/en/module_specs/zend.view.quick-start.xml b/documentation/manual/en/module_specs/zend.view.quick-start.xml index 1191ddaaa2f..c45a4db642a 100644 --- a/documentation/manual/en/module_specs/zend.view.quick-start.xml +++ b/documentation/manual/en/module_specs/zend.view.quick-start.xml @@ -215,9 +215,13 @@ return array( // The default template used in such situations is "error", just // like the exception strategy. Let's tell it to use the "site/404" // template, (which we mapped via the TemplateMapResolver, above). + // + // You can opt in to inject the reason for a 404 situation; see the + // various Application::ERROR_* constants for a list of values. 'Zend\Mvc\View\RouteNotFoundStrategy' => array( 'parameters' => array( - 'notFoundTemplate' => 'site/404', + 'notFoundTemplate' => 'site/404', + 'displayNotFoundReason' => true, ), ), ),