/+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/Welcome.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:
9
9
    ];
10
10
  }
11
11
  
12
 
  public function hello ($val) {
13
 
    if (count ($val) < 1) {
 
12
  public function hello ($args) {
 
13
    if (count ($args) < 1) {
14
14
      echo "Too few arguments to the hello () method.";
15
15
      return;
16
16
    }
18
18
    echo "Hello " . $val[0];
19
19
  }
20
20
  
21
 
  public function default_method () {
 
21
  public function default_method ($args) {
22
22
    echo "<h1> Hello from Welcome.php! </h1>";
23
23
  }
24
24