Skip to content

Kirby 6.0.0

$router->response()

Creates a Response object from the result of a Panel route call

$router->response(mixed $data, Area|null $area = null, string|null $path = null, string $type = 'view'): Response

Parameters

Name Type Default
$datarequired mixed no default value
$area Kirby\Panel\Areaornull null
$path stringornull null
$type string 'view'

Return type

Kirby\Http\Response

Parent class

Kirby\Panel\Router