Beispiel #1
0
//	<div class="my-template">
//	<div class="row">
//	<div class="col-md-3"></div>
//	<div class="col-md-6">
//		<a href="/"><img class="logo" src="/img/blockchainlogo1.png" border=""></a>
//	</div>
//
//	</div>
//	<div class="col-md-3"></div>
//	<div class="col-md-6" style="vertical-align: middle;   margin-top: 28px;">
//			<h1>Upgrading</h1>
//		</div>
//<div style="min-height: 500px"></div>
//
//	</div>
//	';
//	include('../views/footer.php');
//	exit;
//}
use lib\Bootstrap;
try {
    $app = Bootstrap::getInstance();
    $app->setConfig($config);
    $uri = false;
    if (empty($_SERVER['REQUEST_URI'])) {
        $uri = $argv[1];
    }
    $app->run($uri);
} catch (Exception $e) {
    \controllers\Home::myErrorHandler(E_USER_ERROR, "Uncaught exception 'Exception' with message '{$e->getMessage()}'", $e->getFile(), $e->getLine());
}
 public function routeNotFound()
 {
     if (DEBUG_BAR) {
         Bootstrap::getInstance()->debugbar['messages']->error("404: Page not found");
     }
     header('HTTP/1.0 404 Not Found');
     $controller = new Home($this);
     $controller->pageNotFound();
 }