Merx

$ordersPage->controller()

Call the page controller

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

Parameters

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

Return type

array

Exceptions

Type Description
InvalidArgumentException If the controller returns invalid objects for `kirby`, `site`, `pages` or `page`

Parent class

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