mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-06-17 08:47:52 +00:00
Fixed urls not being visible
This commit is contained in:
@@ -85,16 +85,21 @@ class RouterBase {
|
|||||||
|
|
||||||
$this->currentRoute = $route;
|
$this->currentRoute = $route;
|
||||||
|
|
||||||
if($route instanceof RouterGroup && is_callable($route->getCallback()) && $route->matchRoute($this->request)) {
|
if($route instanceof RouterGroup && is_callable($route->getCallback())) {
|
||||||
|
|
||||||
$group = $route;
|
$route->renderRoute($this->request);
|
||||||
|
|
||||||
$group->renderRoute($this->request);
|
if($route->matchRoute($this->request)) {
|
||||||
$mergedSettings = array_merge($settings, $group->getMergeableSettings());
|
|
||||||
|
$group = $route;
|
||||||
|
|
||||||
|
$mergedSettings = array_merge($settings, $group->getMergeableSettings());
|
||||||
|
|
||||||
|
// Add ExceptionHandler
|
||||||
|
if ($group->getExceptionHandler() !== null) {
|
||||||
|
$this->exceptionHandlers[] = $route;
|
||||||
|
}
|
||||||
|
|
||||||
// Add ExceptionHandler
|
|
||||||
if($group->getExceptionHandler() !== null) {
|
|
||||||
$this->exceptionHandlers[] = $route;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user