[FEATURE] If no parameters are specified in the route, getRoute will now

add the parameters provided to the method instead.
This commit is contained in:
Simon Sessingø
2015-10-24 23:18:16 +02:00
parent d6bdcbe70c
commit 20fc067765
+5
View File
@@ -230,6 +230,11 @@ class RouterBase {
$url = str_ireplace('{' . $param. '}', $value, $url);
$i++;
}
} else {
// If no parameters are specified in the route, assume that the provided parameters should be used.
if(count($parameters)) {
$url .= join('/', $parameters);
}
}
}