Skip to content

Kirby 3.7.5

F::load()

Loads a file and returns the result or false if the file to load does not exist

F::load(string $file, mixed $fallback = null, array $data = [ ]): mixed

Parameters

Name Type Default Description
$file * string
$fallback mixed null
$data array [ ] Optional array of variables to extract in the variable scope

Return type

mixed

Parent class

Kirby\Filesystem\F