$templatesget()

Get a template by name or ID

Given a template ID or name, return the matching template or NULL if not found.

Usage

$template = $templates->get($key);

Arguments

NameType(s)Description
$keystring int

Template name or ID

Return value

Template null string


$templates methods and properties

API reference based on ProcessWire core version 3.0.252