Merx

$productPage->render()

Renders the page with the given data.

$productPage->render(array $data = [], $contentType = 'html', VersionId|string|null $versionId = null): string

Parameters

Name Type Default Description
$data array []
$contentType mixed 'html'
$versionId VersionId or string or null null

Optional override for the auto-detected version to render

Return type

string

Exceptions

Type Description
NotFoundException If the default template cannot be found

Description

An optional content type can be passed to
render a content representation instead of
the default template.

Parent class

Wagnerwagner\Merx\ProductPage inherited from Kirby\Cms\Page