Generates 'select' list of options.
string
formSelect
(string|array $name, [mixed $value = null], [array|string $attribs = null], [array $options = null], [string $listsep = "<br />\n"])
-
string|array
$name: If a string, the element name. If an array, all other parameters are ignored, and the array elements are extracted in place of added parameters.
-
mixed
$value: The option value to mark as 'selected'; if an array, will mark all values in the array as 'selected' (used for multiple-select elements).
-
array|string
$attribs: Attributes added to the 'select' tag.
-
array
$options: An array of key-value pairs where the array key is the radio value, and the array value is the radio text.
-
string
$listsep: When disabled, use this list separator string between list values.
Builds the actual <option> tag
string
_build
(string $value, string $label, array $selected)
-
string
$value: Options Value
-
string
$label: Options Label
-
array
$selected: The option value(s) to mark as 'selected'
Inherited Methods
Inherited From Zend_View_Helper_FormElement
Zend_View_Helper_FormElement::_getInfo()
Zend_View_Helper_FormElement::_hidden()
Zend_View_Helper_FormElement::_htmlAttribs()