activeDropDownList() public static method
Generates a drop-down list for the given model attribute. The selection of the drop-down list is taken from the value of the model attribute.
public static string activeDropDownList ( $model, $attribute, $items, $options = [] )$model yii\base\Model
The model object $attribute string
The attribute name or expression. See getAttributeName() for the format about attribute expression. $items array
The option data items. The array keys are option