$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