/+junk/StupidMVC

To get this branch, use:
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
21
22
23
24
25
26
27
28
29
30
31
<?php

class Welcome extends AbstractController {
  
  public function get_methods () {
    return [
      "hello" => "hello",
      "hello_again" => "hello"
    ];
  }
  
  public function hello ($val) {
    if (count ($val) < 1) {
      echo "Too few arguments to the hello () method.";
      return;
    }
    
    echo "Hello " . $val[0];
  }
  
  public function default_method () {
    echo "<h1> Hello from Welcome.php! </h1>";
  }
  
  /*
  public function get_routes () {
    return NULL;
  }
  */
  
}