block.ifctrl_value.php
Tags
Table of Contents
- jtpl_block_html_ifctrl_value() : string
- a special if block to test easily the current control value TO BE USED inside a {formcontrols} block.
Functions
jtpl_block_html_ifctrl_value()
a special if block to test easily the current control value TO BE USED inside a {formcontrols} block.
jtpl_block_html_ifctrl_value(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $params = array() ]) : string
{ifctrl_value 'name', 'expected-value'} some tpl {else} some other tpl {/ifctrl_value}
Parameters
- $compiler : jTplCompiler
-
the template compiler
- $begin : bool
-
true if it is the begin of block, else false
- $params : array<string|int, mixed> = array()
-
0=>'name',etc. to match against current control name and expected value
Return values
string —the php code corresponding to the begin or end of the block