/+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 Common/AbstractController.php

  • Committer: Gustav Hatvigsson
  • Date: 2016-03-16 13:19:32 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160316131932-4187dfwz43gl28hs
* Made the router a class
* Made routeing work
* removed get_route () from AbstractController

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
  
8
8
  public function default_method () {
9
9
    echo "<h1>It Works!</h1>";
 
10
    echo "<b> You should add default_method () to your class. </b>";
10
11
  }
11
12
  
12
13
  /**
26
27
   */
27
28
  abstract public function get_methods ();
28
29
  
29
 
  /**
 
30
  /*
30
31
   * Get the custom rout definitions.
31
32
   */
32
 
  abstract public function get_routes ();
 
33
  //abstract public function get_routes ();
33
34
  
34
35
  /**
35
36
   * load a view class.