$page->changeTemplate()
Changes the page template
$page->changeTemplate(string $template): Kirby\Cms\Page
Parameters
Name | Type | Default | Description |
---|---|---|---|
$template |
string |
– |
Return type
Exceptions
Type | Description |
---|---|
Kirby\Exception\LogicException |
If the textfile cannot be renamed/moved |