Template
- Full name:
\BigCommerce\Templates\Template
Methods
__construct
Template constructor.
public __construct(string $path): mixed
Parameters:
Parameter | Type | Description |
---|---|---|
$path | string | Absolute filesystem path to the template |
render
Render the template to a string
public render(array $context): string
Parameters:
Parameter | Type | Description |
---|---|---|
$context | array | Variables that will be passed to the template |
Automatically generated on 2025-01-21