Skip to content

Kirby 6.0.0

$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 $ignore = []): Route

Parameters

Name Type Default Description
$pathrequired string no default value
$methodrequired string no default value
$ignore array<Kirby\Http\Route> [] Routes to skip

Return type

Kirby\Http\Route

Parent class

Kirby\Http\Router