activeListInput() protected static method
Generates a list of input fields.
This method is mainly called by activeListBox(), activeRadioList() and \yii\helpers\activeCheckBoxList().
protected static string activeListInput ( $type, $model, $attribute, $items, $options = [] ) | ||
---|---|---|
$type | string |
The input type. This can be 'listBox', 'radioList', or 'checkBoxList'. |
$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 data item used to generate the input fields. The array keys are the input values, and the array values are the corresponding labels. Note that the labels will NOT be HTML-encoded, while the values will. |
$options | array |
Options (name => config) for the input list. The supported special options depend on the input type specified by |
return | string |
The generated input list |
Please login to continue.