Routing test 1
This commit is contained in:
@@ -85,6 +85,7 @@
|
||||
|
||||
function getClassPath($class, $suffix=true) {
|
||||
$path = str_replace('\\', '/', $class);
|
||||
if (startsWith($path, "/")) $path = substr($path, 1);
|
||||
$suffix = ($suffix ? ".class" : "");
|
||||
return "core/$path$suffix.php";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user