$formsviewFile()

Outputs the given file

File must be located under getFilesPath()

Usage

$forms->viewFile(string $key);

Arguments

NameType(s)Description
$keystring

Key representing the file to view (generated by getFileKey)

Exceptions

Method can throw exceptions on error:

  • Wire404Exception


$forms methods and properties

API reference based on ProcessWire core version 3.0.251