$kirby->render()
Returns the Response object for the current request
Parameters
Name | Type | Default |
---|---|---|
$path | string |null |
null |
$method | string |null |
null |
Return type
Parent class
Disabling the render method
$kirby->render()
can be disabled temporarily by setting
This needs to be set before $kirby->render()
is called.
As an example, this is used by the Kirby CLI to load the index.php
without getting any output. This way, the CLI can access the correct $kirby
instance with all custom roots and options.
If one of your independent PHP scripts need access to the $kirby
instance in a similar way, you can require the index.php
like this …