block.crmScope.php
Table of Contents
Functions
- smarty_block_crmScope() : string
- Smarty block function to temporarily define variables.
Functions
smarty_block_crmScope()
Smarty block function to temporarily define variables.
smarty_block_crmScope(array<string|int, mixed> $params, string $content, Smarty_Internal_Template &$smarty, mixed &$repeat) : string
Example:
{tsScope x=1}
Expect {$x}==1
{tsScope x=2}
Expect {$x}==2
{/tsScope}
Expect {$x}==1
{/tsScope}
Parameters
- $params : array<string|int, mixed>
-
Must define 'name'.
- $content : string
-
Default content.
- $smarty : Smarty_Internal_Template
-
The Smarty object.
- $repeat : mixed