Skip to content

Kirby 5.5.2

$kirby->disguiseFilePath()

Replaces absolute file paths with placeholders such as {kirby_folder}, {site_folder} or {index_folder} 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

This method modifies the existing $app object it is applied to and returns it again.

Parent class

Kirby\Cms\App