/+junk/StupidMVC

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