block.ifctrl.php
Tags
Table of Contents
- jtpl_block_html_ifctrl() : string
- a special if block to test easily the current control name TO BE USED inside a {formcontrols} block
Functions
jtpl_block_html_ifctrl()
a special if block to test easily the current control name TO BE USED inside a {formcontrols} block
jtpl_block_html_ifctrl(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $params = array() ]) : string
{ifctrl 'name1','name2',...} some tpl {else} some other tpl {/ifctrl}
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
Return values
string —the php code corresponding to the begin or end of the block