Skip to content

Commit c2e9b28

Browse files
authored
Update README.md
1 parent 2277bc0 commit c2e9b28

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ $basePath = \Slim\Routing\RouteContext::fromRequest($request)->getBasePath(),
125125
#### Creating a relative url with the base path
126126

127127
```php
128-
$routeParser = \Slim\Routing\RouteContext::fromRequest($request);
128+
$routeParser = \Slim\Routing\RouteContext::fromRequest($request)->getRouteParser();
129129
$url = $routeParser->urlFor('root');
130130
```
131131

0 commit comments

Comments
 (0)