Smarty
Less than 1 minute
Smarty
The View\Template class.
Properties
cache_enabled
public bool $cache_enabled = true
__cache_enabled
private bool $__cache_enabled
__source_file
public File $__source_file
__cache_file
public File $__cache_file
__cwd
private string $__cwd
Methods
__construct
public __construct(string $file, ?bool $cache_enabled): void
Parameters
Parameter | Type | Description |
---|---|---|
$file | string | |
$cache_enabled | bool |
__destruct
public __destruct(): void
loadFromFile
public loadFromFile(string $file): void
Parameters
Parameter | Type | Description |
---|---|---|
$file | string |
compile
public compile(): string
render
public render(array $params = []): string
Parameters
Parameter | Type | Description |
---|---|---|
$params | array |
compileCONFIG_LOAD
Compile the CONFIG_LOAD tag.
public compileCONFIG_LOAD(string $params): string
Parameters
Parameter | Type | Description |
---|---|---|
$params | string |
getCompiledContentFromCache
private getCompiledContentFromCache(): string
Generated by Hazaar API Doc Generator