FormBuilderMain::viewFile()

Outputs the given file, must be located under getFilesPath()

Usage

$bool = $formBuilderMain->viewFile(string $key);

Arguments

NameType(s)Description
$keystring

Key representing the file to view (generated by getFileKey)

Return value

bool

Returns false on failure. On success, it exists program execution.


FormBuilderMain methods and properties

API reference based on ProcessWire core version 3.0.251