mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-14 21:30:17 +08:00
@@ -114,7 +114,7 @@ to the attribute name:
|
||||
|
||||
```php
|
||||
// allow multiple files to be uploaded:
|
||||
echo $form->field($model, 'uploadFile[]')->fileInput('multiple'=>'multiple');
|
||||
echo $form->field($model, 'uploadFile[]')->fileInput(['multiple'=>'multiple']);
|
||||
|
||||
// allow multiple items to be checked:
|
||||
echo $form->field($model, 'items[]')->checkboxList(['a' => 'Item A', 'b' => 'Item B', 'c' => 'Item C']);
|
||||
|
||||
Reference in New Issue
Block a user