Example #1
0
<?php

if (!isset($message)) {
    // if there is no message set, then this request probably came directly to
    // this error file, which doesn't make any sense
    header('Location: /');
    exit(0);
}
if (!isset($code)) {
    $file = basename(__FILE__);
    $code = (int) substr($file, 0, strpos($file, '.'));
}
if (isset($exception) && class_exists('\\Koldy\\Application') && \Koldy\Application::inProduction()) {
    $message = 'Internal Server Error';
}
?>
<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="utf-8">
		<meta http-equiv="X-UA-Compatible" content="IE=edge">
		<meta name="viewport" content="width=device-width, initial-scale=1">
		<title>Error <?php 
echo $code;
?>
</title>

		<!-- Bootstrap -->
		<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
		<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap-theme.min.css">