ubuntu:latest ist inzwischen 26.04 mit PHP 8.5, das Kirby 4.6 nicht unterstuetzt. 24.04 liefert php8.3 8.3.6-0ubuntu0.24.04.13 mit dem Fix fuer CVE-2026-109618/-109619. Image neu bauen mit --pull. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
16 lines
478 B
PHP
16 lines
478 B
PHP
<?php
|
|
/**
|
|
* Controllers allow you to separate the logic of your templates from your markup.
|
|
* This is especially useful for complex logic, but also in general to keep your templates clean.
|
|
*
|
|
* In this example, we split the tags from the tags field to create a nice tag list
|
|
*
|
|
* More about controllers:
|
|
* https://getkirby.com/docs/guide/templates/controllers
|
|
*/
|
|
return function ($page) {
|
|
return [
|
|
'tags' => $page->tags()->split(','),
|
|
];
|
|
};
|