Skip to content

Kirby 5.0.4

Router::execute()

Creates a micro-router and executes the routing action immediately

Router::execute(string|null $path = null, string $method = 'GET', array $routes = [ ], Closure|null $callback = null)

Parameters

Name Type Default
$path stringornull null
$method string 'GET'
$routes array [ ]
$callback Closureornull null

Parent class

Kirby\Http\Router