$kirby
The $kirby
object is the app instance of your Kirby installation. It's the central starting point to get all the different aspects of your site, like the options, urls, roots, languages, roles, etc.
-
$kirby->apply()
-
$kirby->blueprints()
-
$kirby->cache()
-
$kirby->call()
-
$kirby->clone()
-
$kirby->collection()
-
$kirby->collections()
-
$kirby->contentToken()
-
$kirby->core()
-
$kirby->csrf()
-
$kirby->defaultLanguage()
-
$kirby->detectedLanguage()
-
$kirby->email()
-
$kirby->environment()
-
$kirby->file()
-
$kirby->hardcopy()
-
$kirby->image()
-
$kirby->impersonate()
-
$kirby->isNativeComponent()
-
$kirby->language()
-
$kirby->languages()
-
$kirby->load()
-
$kirby->locks()
-
$kirby->multilang()
-
$kirby->nativeComponent()
-
$kirby->nonce()
-
$kirby->option()
-
$kirby->options()
-
$kirby->page()
-
$kirby->panelLanguage()
-
$kirby->path()
-
$kirby->render()
-
$kirby->request()
-
$kirby->response()
-
$kirby->roles()
-
$kirby->root()
-
$kirby->roots()
-
$kirby->route()
-
$kirby->session()
-
$kirby->sessionHandler()
-
$kirby->site()
-
$kirby->snippet()
-
$kirby->system()
-
$kirby->thumb()
-
$kirby->translation()
-
$kirby->translations()
-
$kirby->trigger()
-
$kirby->url()
-
$kirby->urls()
-
$kirby->user()
-
$kirby->users()
-
$kirby->visitor()
-
Kirby::instance()
-
Kirby::plugin()
-
Kirby::version()
-
Kirby::versionHash()
-
new Kirby()
How to fetch the $kirby
object
The $kirby
class is accessible in Kirby's templates/snippets etc. through the $kirby
variable.
In any situation, you can define a $kirby
object using the kirby()
helper: