Jelix 1.8.11

function.ctrl_value_assign.php

Tags
subpackage

jtpl_plugin

author

Laurent Jouanneau

copyright

2024 Laurent Jouanneau

see
https://www.jelix.org
licence

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

Table of Contents

jtpl_function_html_ctrl_value_assign()  : mixed
function plugin : assign the value of the current control into the given template variable

Functions

jtpl_function_html_ctrl_value_assign()

function plugin : assign the value of the current control into the given template variable

jtpl_function_html_ctrl_value_assign(jTpl $tpl, string $varname[, string $ctrlname = '' ][, mixed $insteadOfDisplay = null ]) : mixed
Parameters
$tpl : jTpl

template engine

$varname : string

name of the template variable

$ctrlname : string = ''

the name of the control from which we retrieve the value. Empty if current control of a loop.

$insteadOfDisplay : mixed = null
Tags
throws
jException
Return values
mixed

Search results