diff --git a/route.php b/route.php index e7f4d74..c1c602a 100644 --- a/route.php +++ b/route.php @@ -276,7 +276,7 @@ class route { if ($this->debug) echo "==> Not a GET Method\n"; - return; + return $this; } return $this->map ($route, $function); @@ -298,7 +298,7 @@ class route { if ($this->debug) echo "==> Not a POST Method\n"; - return; + return $this; } return $this->map ($route, $function); @@ -320,7 +320,7 @@ class route { if ($this->debug) echo "==> Not a PUT Method\n"; - return; + return $this; } return $this->map ($route, $function); @@ -342,7 +342,7 @@ class route { if ($this->debug) echo "==> Not a DELETE Method\n"; - return; + return $this; } return $this->map ($route, $function); @@ -428,6 +428,7 @@ class route if ($this->debug) echo "==> NO MATCH\n"; + return $this; } /** Print an error page. If a custom page exists, use it