Skip to content

Kirby 5.0.4

$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

This method modifies the existing $environment object it is applied to and returns it again.

Parent class

Kirby\Http\Environment