Skip to content

Kirby 3.5.7.1

new Kirby()

Creates a new App instance

new Kirby(array $props = [ ], bool $setInstance = true)

Parameters

Name Type Default Description
$props array [ ]
$setInstance bool true If false, the instance won't be set globally

For the $props parameter, you pass an array with the following data, which will be used to set up the Kirby\Cms\App object:

Name Type Description
languages array Create your own set of languages
path string Sets the request path that is
used for the router
request array Sets the request
roles array Create your own set of roles
site Kirby\Cms\Site|array Sets a custom Site object
user Kirby\Cms\User|string Set the currently active user id
users array Create your own set of app users

Parent class

Kirby\Cms\App