... | ... |
@@ -65,7 +65,7 @@ class Router{ |
65 | 65 |
|
66 | 66 |
public function match($request){ |
67 | 67 |
|
68 |
- $auri = explode('/', trim($request->Path, "/ \t\n\r\0\x0B")); |
|
68 |
+ $auri = explode('/', trim($request->path, "/ \t\n\r\0\x0B")); |
|
69 | 69 |
$curi = count($auri); |
70 | 70 |
|
71 | 71 |
foreach ($this->routes as $routeInfo) { |
... | ... |
@@ -101,7 +101,7 @@ class Router{ |
101 | 101 |
if($matchResult){ // match found |
102 | 102 |
$this->depth = $curi; |
103 | 103 |
$this->routeInfo = $routeInfo; |
104 |
- return $routeInfo->Result; |
|
104 |
+ return $routeInfo->result; |
|
105 | 105 |
} |
106 | 106 |
} |
107 | 107 |
} |