update,
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
class Route {
|
||||
|
||||
public static $routes = array();
|
||||
|
||||
public static function map($route, $function){
|
||||
self::$routes[] = $route;
|
||||
//print_r(self::$routes);
|
||||
|
||||
if($_GET['url'] == $route){
|
||||
$function->__invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user