Snippet::load()
Renders the template
Snippet::load(string|null $file = null, array $data = [ ]): string
Parameters
| Name | Type | Default |
|---|---|---|
| $file | stringornull |
null
|
| $data | array |
[ ]
|
Return type
string
Exceptions
| Type | Description |
|---|---|
Throwable |
Parent class
Kirby\Panel\Lab\Snippet
inherited from Kirby\Toolkit\Tpl