fixed routing bug when using nested route directories.
This commit is contained in:
@@ -68,6 +68,8 @@ class Router {
|
|||||||
if (file_exists($path = ROUTE_PATH.implode('/', array_slice($segments, 0, $key + 1)).EXT))
|
if (file_exists($path = ROUTE_PATH.implode('/', array_slice($segments, 0, $key + 1)).EXT))
|
||||||
{
|
{
|
||||||
$routes = require $path;
|
$routes = require $path;
|
||||||
|
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user