Simple Route
This commit is contained in:
+11
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
class PathParams
|
||||
{
|
||||
public static function get()
|
||||
{
|
||||
$path = ltrim(str_replace(Config::getBasePath(), "", $_SERVER['REQUEST_URI']), "/");
|
||||
$segs = explode("/", $path);
|
||||
return $segs ? $segs : [];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user