$page->controller()
Call the page controller
Parameters
Name | Type | Default |
---|---|---|
$data | array |
[ ] |
$contentType | string |
'html' |
Return type
array
Exceptions
Type | Description |
---|---|
Kirby\Exception\InvalidArgumentException |
If the controller returns invalid objects for kirby , site , pages or page |