❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$file->extension()
Returns the file extension
return
(string)
Example
<?= $page->file()->extension(); ?>
↑
Cheat Sheet overview
←
$file->exif()
→
$file->filename()
↓
Back to Cheat Sheet section
Top