Skip to content

Kirby 6.0.1

$kirby->disguiseFilePath()

Replaces absolute file paths with placeholders such as {kirby}, {site} or {index} to avoid exposing too many details about the filesystem and keeping error responses short and readable in debug mode.

$kirby->disguiseFilePath(string $file): string

Parameters

Name Type Default
$filerequired string no default value

Return type

string

Parent class

Kirby\Cms\App