Skip to content

Kirby 3.7.5

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): mixed

Parameters

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

Return type

mixed

Parent class

Kirby\Http\Router