Skip to content

Kirby 6.0.0

$kirby->controller()

Calls a page controller by name and with the given arguments

$kirby->controller(string $name, array $arguments = [], string $contentType = 'html'): array

Parameters

Name Type Default
$namerequired string no default value
$arguments array []
$contentType string 'html'

Return type

array<string, mixed>

Parent class

Kirby\Cms\App

Examples

See General site controller