class Smarty implements RendererInterface

Renderer for the Smarty template engine

Properties

protected Smarty $smarty
protected ApplicationPath $appPath
protected string $environment

Methods

__construct(Smarty $smarty, ApplicationPath $appPath, string $environment)

Smarty constructor.

void
configure(array $params = [])

No description

bool
isDevOrInstall()

No description

registerSmartyPlugin(PluginInterface $plugin)

No description

$this
assign(string|array $name, null $value = null)

No description

mixed
getTemplateVars(string|null $variableName = null)

No description

string
fetch(string $template, mixed $cacheId = null, mixed $compileId = null, object|null $parent = null)

No description

void
display(string $template, mixed $cacheId = null, mixed $compileId = null, object|null $parent = null)

No description

bool
templateExists(string $template)

No description

Details

at line 35
__construct(Smarty $smarty, ApplicationPath $appPath, string $environment)

Smarty constructor.

Parameters

Smarty $smarty
ApplicationPath $appPath
string $environment

at line 50
void configure(array $params = [])

Parameters

array $params

Return Value

void

Exceptions

SmartyException

at line 62
protected bool isDevOrInstall()

Return Value

bool

at line 71
registerSmartyPlugin(PluginInterface $plugin)

Parameters

PluginInterface $plugin

at line 79
$this assign(string|array $name, null $value = null)

Parameters

string|array $name
null $value

Return Value

$this

at line 89
mixed getTemplateVars(string|null $variableName = null)

Parameters

string|null $variableName

Return Value

mixed

at line 97
string fetch(string $template, mixed $cacheId = null, mixed $compileId = null, object|null $parent = null)

Parameters

string $template
mixed $cacheId
mixed $compileId
object|null $parent

Return Value

string

at line 105
void display(string $template, mixed $cacheId = null, mixed $compileId = null, object|null $parent = null)

Parameters

string $template
mixed $cacheId
mixed $compileId
object|null $parent

Return Value

void

at line 113
bool templateExists(string $template)

Parameters

string $template

Return Value

bool