/+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
32
33
<?php

class Welcome extends AbstractController {
  
  public function get_methods () {
    return [
      "hello" => "hello",
      "hello_again" => "hello"
    ];
  }
  
  public function hello ($args) {
    if (count ($args) < 1) {
      echo "Too few arguments to the hello () method.";
      return;
    }
    
    echo "Hello " . $val[0];
  }
  
  public function default_method ($args) {
    ob_start ();
    $this->load_view ("WelcomeView", NULL);
    ob_end_flush ();
  }
  
  /*
  public function get_routes () {
    return NULL;
  }
  */
  
}