Skip to content

Kirby 3.7.5

$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.

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:

$kirby = kirby();