SmartyEngine
in package
implements
TemplateEngine
Class SmartyEngine
Interfaces, Classes and Traits
- TemplateEngine
- Interface TemplateEngine
Table of Contents
- $configuration : SmartyConfiguration
- $smarty : Smarty
- $templateExtender : TemplateExtender
- __construct() : mixed
- SmartyEngine constructor.
- render() : string
- Renders the template.
Properties
$configuration
private
SmartyConfiguration
$configuration
$smarty
private
Smarty
$smarty
$templateExtender
private
TemplateExtender
$templateExtender
Methods
__construct()
SmartyEngine constructor.
public
__construct(Smarty $smarty, TemplateExtender $templateExtender, SmartyConfiguration $configuration) : mixed
Parameters
- $smarty : Smarty
- $templateExtender : TemplateExtender
- $configuration : SmartyConfiguration
Return values
mixed —render()
Renders the template.
public
render(string $templatePath[, array<string|int, mixed> $data = [] ]) : string
Parameters
- $templatePath : string
- $data : array<string|int, mixed> = []