ClassesBigCommerceTemplatesTemplate

Template

  • Full name: \BigCommerce\Templates\Template

Methods

__construct

Template constructor.

public __construct(string $path): mixed

Parameters:

ParameterTypeDescription
$pathstringAbsolute filesystem path to the template

render

Render the template to a string

public render(array $context): string

Parameters:

ParameterTypeDescription
$contextarrayVariables that will be passed to the template


Automatically generated on 2025-01-21