Jelix 1.8.14-pre

block.form.php

Tags
subpackage

jtpl_plugin

author

Laurent Jouanneau

contributor

Julien Issler, Bastien Jaillot, Dominique Papin

copyright

2006-2020 Laurent Jouanneau

copyright

2008 Julien Issler, 2008 Bastien Jaillot, 2008 Dominique Papin

see
http://www.jelix.org
licence

GNU Lesser General Public Licence see LICENCE file or http://www.gnu.org/licenses/lgpl.html

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
see
jForms
Return values
string

the php code corresponding to the begin or end of the block

Search results