block.form.php
Tags
Table of Contents
- jtpl_block_html_form() : string
- a block to display an html form, with data from a jforms.
Functions
jtpl_block_html_form()
a block to display an html form, with data from a jforms.
jtpl_block_html_form(jTplCompiler $compiler, bool $begin[, array<string|int, mixed> $param = array() ]) : string
usage : {form $theformobject,'submit_action', $submit_action_params} here form content {/form}
You can add this others parameters :
- string $builderName (default is 'html')
- array $options for the builder. Example, for the 'html' builder :
- "errorDecorator"=>"name of your javascript object for error listener"
- "method" => "post" or "get". default is "post"
Parameters
- $compiler : jTplCompiler
-
the template compiler
- $begin : bool
-
true if it is the begin of block, else false
- $param : array<string|int, mixed> = array()
-
0=>form object 1=>selector of submit action 2=>array of parameters for submit action 3=>name of the builder : default is html 4=>array of options for the builder
Tags
Return values
string —the php code corresponding to the begin or end of the block