bzr branch
http://gegoxaren.bato24.eu/bzr/%2Bjunk/StupidMVC
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 |
<?php class FourOhFour extends AbstractController { public function get_methods () { return NULL; } public function default_method ($url) { header ("HTTP/1.1 Not Found"); http_response_code (404); $this->load_view_raw ("header.php", ["page_title" => "404"]); echo "<h1> 404, Not found. </h1>"; echo "Could not find " . $url; $this->load_view_raw ("footer.php"); } } |