Reference

Guide

$page->controller()

Call the page controller

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

Parameters

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

Return type

array

Source code

kirby/src/Cms/Page.php#L332