🎉 If you are still on v2, we offer attractive prices for all owners of a Kirby 2 license to upgrade to v3.
Upgrade your v2 license now
.
$files->get($filename)
Returns a single file by filename
return
($file)
Example
<?= $page->files()->get('myfile.pdf')->url() ?>
↑
Cheat Sheet overview
←
$files->flip()
→
$files->groupBy($field, $caseInsensitive = true)
↓
Back to Cheat Sheet section
Top