Commit 8a95d19a by ff

Update input-forms.md

is array?
parent 66b141d8
......@@ -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']);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment