Skip to content

Kirby 4.2.0

$environment->scriptPath()

Returns the path to the php script within the document root without the filename of the script.

$environment->scriptPath(): string

Return type

string

Parent class

Kirby\Http\Environment