Skip to content

Kirby 4.1.2

new Router()

Creates a new router object and registers all the given routes

new Router(array $routes = [ ], array $hooks = [ ])

Parameters

Name Type Default Description
$routes array [ ]
$hooks array [ ] Optional beforeEach and afterEach hooks

Parent class

Kirby\Http\Router