vendor/smarty/smarty/libs/pluginsfunction.html_options.php

Smarty plugin

Functions

smarty_function_html_options()

smarty_function_html_options(array  $params) : string

Smarty {html_options} function plugin Type: function<br> Name: html_options<br> Purpose: Prints the list of <option> tags generated from the passed parameters<br> Params: <pre> - name (optional) - string default "select" - values (required) - if no options supplied) - array - options (required) - if no values supplied) - associative array - selected (optional) - string default not set - output (required) - if not options supplied) - array - id (optional) - string default not set - class (optional) - string default not set </pre>

Parameters

array $params

parameters

Returns

string

smarty_function_html_options_optoutput()

smarty_function_html_options_optoutput(  $key,   $value,   $selected,   $id,   $class,   $idx) 

Parameters

$key
$value
$selected
$id
$class
$idx

smarty_function_html_options_optgroup()

smarty_function_html_options_optgroup(  $key,   $values,   $selected,   $id,   $class,   $idx) 

Parameters

$key
$values
$selected
$id
$class
$idx