Skip to content

Kirby 3.8.4

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 = [ ], bool $allowOutput = true)

Parameters

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

Parent class

Kirby\Filesystem\F