FIIXED
This commit is contained in:
parent
a640b11b66
commit
028908053a
@ -12,13 +12,9 @@ abstract class Route {
|
|||||||
array_map(strtoupper(...), explode('|', $methods))
|
array_map(strtoupper(...), explode('|', $methods))
|
||||||
)) return;
|
)) return;
|
||||||
|
|
||||||
static $request_path_parts;
|
$request_path_parts = explode('/', urldecode(
|
||||||
if (!isset($request_path_parts)) {
|
strtok($_SERVER['REQUEST_URI'], '?')
|
||||||
$request_path_parts = explode('/', urldecode(
|
));
|
||||||
strtok($_SERVER['REQUEST_URI'], '?')
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
|
||||||
$path_parts = explode('/', $path);
|
$path_parts = explode('/', $path);
|
||||||
$callback_args = [];
|
$callback_args = [];
|
||||||
for ($i=0; $i < count($path_parts); $i++) {
|
for ($i=0; $i < count($path_parts); $i++) {
|
||||||
|
Loading…
Reference in New Issue
Block a user