Skip to content

Kirby 4.4.1

new Route()

Creates a new Route object for the given pattern(s), method(s) and the callback action

new Route(string $pattern, string $method, Closure $action, array $attributes = [ ])

Parameters

Name Type Default
$pattern * string
$method * string
$action * Closure
$attributes array [ ]

Parent class

Kirby\Http\Route