block.ifctrlexists.php
Tags
Table of Contents
- jtpl_block_html_ifctrlexists() : string
- a special if block to check if a ctrl exist in the form TO BE USED inside a `{form}` or `{formadata}` block.
Functions
jtpl_block_html_ifctrlexists()
a special if block to check if a ctrl exist in the form TO BE USED inside a `{form}` or `{formadata}` block.
jtpl_block_html_ifctrlexists(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $params = array() ]) : string
{ifctrlexists 'name1'} some tpl {else} some other tpl {/ifctrlexists}
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', to match against current control name
Return values
string —the php code corresponding to the begin or end of the block