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