Skip to content

Kirby 4.4.1

$kirby->file()

Finds any file in the content directory

$kirby->file(string $path, mixed $parent = null, bool $drafts = true): Kirby\Cms\File|null

Parameters

Name Type Default
$path * string
$parent mixed null
$drafts bool true

Return type

Kirby\Cms\File|null

Parent class

Kirby\Cms\App