smarty_function_html_options()
smarty_function_html_options(array $params, \Smarty_Internal_Template $template) : string
Smarty {html_options} function plugin Type: function Name: html_options Purpose: Prints the list of <option> tags generated from the passed parameters Params:
- 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
Parameters
array | $params | parameters |
\Smarty_Internal_Template | $template |
Throws
- \SmartyException