Skip to content

Kirby 5.0.4

$router->find()

Finds a Route object by path and method The Route's arguments method is used to find matches and return all the found arguments in the path.

$router->find(string $path, string $method, array|null $ignore = null): Kirby\Http\Route

Parameters

Name Type Default
$pathrequired string no default value
$methodrequired string no default value
$ignore arrayornull null

Return type

Kirby\Http\Route

This method modifies the existing $router object it is applied to and returns it again.

Parent class

Kirby\Http\Router