Skip to content

Commit

Permalink
[zendframework#1] Added displayNotFoundReason config setting
Browse files Browse the repository at this point in the history
- Based on PR zendframework#851
  • Loading branch information
weierophinney committed Feb 28, 2012
1 parent 312da7a commit dcaf75e
Showing 1 changed file with 5 additions and 1 deletion.
Expand Up @@ -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,
),
),
),
Expand Down

0 comments on commit dcaf75e

Please sign in to comment.