mirror of
https://github.com/skipperbent/simple-php-router.git
synced 2026-07-11 20:02:13 +00:00
Merge pull request #122 from skipperbent/development
Fixed urls in groups not working
This commit is contained in:
@@ -85,20 +85,25 @@ 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())) {
|
||||||
|
|
||||||
|
$route->renderRoute($this->request);
|
||||||
|
|
||||||
|
if($route->matchRoute($this->request)) {
|
||||||
|
|
||||||
$group = $route;
|
$group = $route;
|
||||||
|
|
||||||
$group->renderRoute($this->request);
|
|
||||||
$mergedSettings = array_merge($settings, $group->getMergeableSettings());
|
$mergedSettings = array_merge($settings, $group->getMergeableSettings());
|
||||||
|
|
||||||
// Add ExceptionHandler
|
// Add ExceptionHandler
|
||||||
if($group->getExceptionHandler() !== null) {
|
if ($group->getExceptionHandler() !== null) {
|
||||||
$this->exceptionHandlers[] = $route;
|
$this->exceptionHandlers[] = $route;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
$this->currentRoute = null;
|
$this->currentRoute = null;
|
||||||
|
|
||||||
if(count($this->backStack)) {
|
if(count($this->backStack)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user