$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 |
|---|---|---|
| $pathrequired | string |
no default value |
| $parent | mixed |
null
|
| $drafts | bool |
true
|
Return types
Kirby\Cms\Fileornull
This method modifies the existing $app object it is applied to and returns it again.