Skip to content
Snippets Groups Projects
Commit 20d0acd7 authored by Demian Katz's avatar Demian Katz
Browse files

Made APPLICATION_ENV control detail level of error output; added detailed...

Made APPLICATION_ENV control detail level of error output; added detailed error message to 404 page.
parent 6a58a335
No related merge requests found
......@@ -27,9 +27,8 @@ $config = array(
),
),
'view_manager' => array(
'display_not_found_reason' => true,
'display_exceptions' => true,
'doctype' => 'HTML5',
'display_not_found_reason' => APPLICATION_ENV == 'development',
'display_exceptions' => APPLICATION_ENV == 'development',
'not_found_template' => 'error/404',
'exception_template' => 'error/index',
'template_path_stack' => array(),
......
<h1><?=$this->transEsc('An error has occurred')?></h1>
<h2><?=$this->transEsc($this->message)?></h2>
\ No newline at end of file
<h2><?=$this->transEsc($this->message)?></h2>
<? if (isset($this->reason) && $this->reason): ?><b><?=$this->transEsc('Message')?>:</b> <?=$this->transEsc($this->reason)?><? endif; ?>
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment