/+junk/StupidMVC

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/%2Bjunk/StupidMVC

« back to all changes in this revision

Viewing changes to Application/Controllers/FourOhFour.php

  • Committer: Gustav Hatvigsson
  • Date: 2016-03-16 13:50:23 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160316135023-iy9mun5l76kbvmud
* Added FourOhFour.php
* added a way to define a 404 controller

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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) {
 
12
    echo "<h1> 404, Not found. </h1>";
 
13
    echo "Could not find " . $url;
 
14
  }
 
15
  
 
16
}