Skip to content

Kirby 6.0.0

JsonResponse::refresh()

Creates a refresh response, which will send the visitor to the given location after the specified number of seconds.

JsonResponse::refresh(string $location = '/', int $code = 302, int $refresh = 0): JsonResponse

Parameters

Name Type Default
$location string '/'
$code int 302
$refresh int 0

Return type

Kirby\Panel\Response\JsonResponse

Parent class

Kirby\Panel\Response\JsonResponse inherited from Kirby\Http\Response