Skip to content

Kirby 4.2.0

Router::execute()

Creates a micro-router and executes the routing action immediately

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

Parameters

Name Type Default
$path string|null null
$method string 'GET'
$routes array [ ]
$callback Closure|null null

Parent class

Kirby\Http\Router