Skip to content

Commit

Permalink
fix: add model type to prevent errors
Browse files Browse the repository at this point in the history
  • Loading branch information
Steffen Giers committed Jan 26, 2020
1 parent 00adf7f commit 57fc322
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
'models' => [
// a camelCased model name results in Kirby\Exception\NotFoundException
'simplepagemodel' => [
'type'=> null,
'fields' => [
'id' => function ($page) {
return $page->id();
Expand Down

0 comments on commit 57fc322

Please sign in to comment.