Skip to content

Kirby 5.0.4

$router->call()

Calls the Router by path and method. This will try to find a Route object and then call the Route action with the appropriate arguments and a Result object.

$router->call(string|null $path = null, string $method = 'GET', Closure|null $callback = null)

Parameters

Name Type Default
$path stringornull null
$method string 'GET'
$callback Closureornull null

Parent class

Kirby\Http\Router