Skip to content

Kirby 4.1.2

Tpl::load()

Renders the template

Tpl::load(?string $file = null, array $data = [ ]): string

Parameters

Name Type Default
$file string|null null
$data array [ ]

Return type

string

Exceptions

Type Description
Throwable

Parent class

Kirby\Toolkit\Tpl