Skip to content

Kirby 3.7.5

$page->render()

Renders the page with the given data.

$page->render(array $data = [ ], string $contentType = 'html'): string

Parameters

Name Type Default
$data array [ ]
$contentType string 'html'

Return type

string

Exceptions

Type Description
Kirby\Exception\NotFoundException If the default template cannot be found

Parent class

Kirby\Cms\Page