block.formcontrols.php
Tags
Table of Contents
- jtpl_block_html_formcontrols() : string
- a block to loop over controls list of a form and to display them.
Functions
jtpl_block_html_formcontrols()
a block to loop over controls list of a form and to display them.
jtpl_block_html_formcontrols(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $param = array() ]) : string
usage : {formcontrols} here content to display one control {/formcontrols} It accept also some parameters
- an optional jFormsBase object if the {formcontrols} is outside a {form} block
- an optional array of control names : only these controls will be displayed
Parameters
- $compiler : jTplCompiler
-
the template compiler
- $begin : bool
-
true if it is the begin of block, else false
- $param : array<string|int, mixed> = array()
-
empty array or 0=>jFormsBase object or 0=>jFormsBase object, 1=>array of control names or 0=>array of control names
Tags
Return values
string —the php code corresponding to the begin or end of the block