- improvement html_checkboxes and html_radios to accept null- and object values, and label_ids attribute

This commit is contained in:
rodneyrehm
2011-10-07 13:39:45 +00:00
parent 1bf1b05846
commit 1f35133079
4 changed files with 153 additions and 48 deletions

View File

@@ -52,16 +52,16 @@ function smarty_function_html_options($params, $template)
case 'name':
case 'class':
case 'id':
$$_key = (string)$_val;
$$_key = (string) $_val;
break;
case 'options':
$options = (array)$_val;
$options = (array) $_val;
break;
case 'values':
case 'output':
$$_key = array_values((array)$_val);
$$_key = array_values((array) $_val);
break;
case 'selected':