<?php echo '<?xml version="1.0" encoding="utf-8"?>'?>
<html xmlns="http://www.w3.org/1999/xhtml"> 
<head>  
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  <title><?php print $this->translate('An error occurred')?></title> 
</head> 
<body> 
  <h1><?php print $this->translate('An error occurred')?></h1>
<?php if($this->exception->getMessage() == 'Access denied'): 
		echo $this->exception->getMessage();
	  
	else : 
?> 
	<h2><?php echo $this->message ?></h2> 

	<?php if ('development' == $this->env || true): ?> 
		<h3><?php print $this->translate('Exception information')?>:</h3> 
		<p> 
		    <b><?php print $this->translate('Message')?>:</b> <?php echo $this->exception->getMessage() ?> 
		</p> 

		<strong><?php print $this->translate('Thrown in')?>:</strong> <?php echo $this->exception->getFile() . ', Line #:' . $this->exception->getLine() . ', Code #: ' . $this->exception->getCode() ?>
		
		<h3><?php print $this->translate('Stack trace')?>:</h3> 
		<pre><?php echo $this->exception->getTraceAsString() ?></pre> 

		<h3><?php print $this->translate('Request Parameters')?>:</h3> 
		<pre><?php echo $this->request->getParams() ?></pre> 
	<?php endif ?>
<?php endif ?> 
</body> 
</html>
