Skip to content

Kirby 6.0.0

RequestResponse::refresh()

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

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

Parameters

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

Return type

Kirby\Panel\Response\RequestResponse

Parent class

Kirby\Panel\Response\RequestResponse inherited from Kirby\Http\Response