dropDownList() public method
Renders a drop-down list. The selection of the drop-down list is taken from the value of the model attribute.
public $this dropDownList ( $items, $options = [] )$items array
The option data items. The array keys are option values, and the array values are the corresponding option labels. The array can also be nested (i.e. some array values are arrays too). For each sub-array, an option group will be generated whose label is the key associated with the sub-arr