<?php 
if(!isDebug()):
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>错误提示</title>
<link rel="shortcut icon" href="/res/favicon.ico" />
</head>
<body>
	<h2>
		<?php echo $this->message ?>
	</h2>

	<?php if (isset($this->exception)): ?>

	<h3>Exception information:</h3>
	<p>
		<b>Message:</b>
		<?php echo $this->exception->getMessage() ?>
	</p>

	<h3>Stack trace:</h3>
	<pre>
		<?php echo $this->exception->getTraceAsString() ?>
  </pre>

	<h3>Request Parameters:</h3>
	<pre>
		<?php echo var_export($this->request->getParams(), true) ?>
  </pre>
	<?php endif ?>

</body>
</html>
<?php else:?>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3c.org/TR/1999/REC-html401-19991224/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="shortcut icon" href="/res/favicon.ico" />
<title>出错啦!</title>
<style>
.wrapper {
            width: 960px;
            margin: 0 auto;
        }
</style>
</head>
<body>
<div class="wrapper">
<iframe scrolling='no' frameborder='0' src='http://yibo.iyiyun.com/js/yibo404/key/7210' width='960' height='464' style='display:block;margin-top:80px;'></iframe>
</div>
</body>
</html>
<?php endif;?>
