Skip to content

Kirby 4.2.0

F::loadOnce()

Loads a file using include_once() and returns whether loading was successful

F::loadOnce(string $file, bool $allowOutput = true): bool

Parameters

Name Type Default
$file * string
$allowOutput bool true

Return type

bool

Parent class

Kirby\Filesystem\F