Skip to content

Kirby 5.0.4

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
$filerequired string no default value
$allowOutput bool true

Return type

bool

Parent class

Kirby\Filesystem\F