Kirby 2 Docs
❌ Kirby 2 has reached its end of life. 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