Response::guardAgainstOutput()
Ensures that the callback does not produce the first body output (used to show when loading a file creates side effects)
Response::guardAgainstOutput(Closure $callback): mixed
Parameters
Name | Type | Default |
---|---|---|
$callbackrequired | Closure |
no default value |
Return type
mixed
Parent class
Kirby\Cms\Response
inherited from Kirby\Http\Response