❌ Kirby 2 no longer actively supported. Migrate to a current version and
upgrade your v2 license now
.
$request->scheme()
Returns the URL scheme (http, https, ftp, etc.)
return
(string)
echo kirby()->request()->scheme();
↑
Cheat Sheet overview
←
$request->referer()
→
$request->secure()
↓
Back to Cheat Sheet section
Top