| Name |
Last commit
|
Last update |
|---|---|---|
| apps | ||
| build | ||
| docs | ||
| extensions | ||
| framework | ||
| tests | ||
| .gitattributes | ||
| .gitignore | ||
| .scrutinizer.yml | ||
| .travis.yml | ||
| CONTRIBUTING.md | ||
| LICENSE.md | ||
| README.md | ||
| composer.json | ||
| phpunit.xml.dist |
1. UploadedFile::getInstances($model, 'file'); sees only one file if not set ```'file[]'```
```php
<?= $form->field($model, 'file[]')->fileInput(['multiple' => '']) ?>
```
2. ```$form->errorSummary(..)``` not return all errors of file attribute, but only the last.
So I had to invent.
```php
if ($model->hasErrors()) {
echo '<pre>';
print_r($model->getErrors());
echo '</pre>';
}
```
So it should be?
| Name |
Last commit
|
Last update |
|---|---|---|
| apps | Loading commit data... | |
| build | Loading commit data... | |
| docs | Loading commit data... | |
| extensions | Loading commit data... | |
| framework | Loading commit data... | |
| tests | Loading commit data... | |
| .gitattributes | Loading commit data... | |
| .gitignore | Loading commit data... | |
| .scrutinizer.yml | Loading commit data... | |
| .travis.yml | Loading commit data... | |
| CONTRIBUTING.md | Loading commit data... | |
| LICENSE.md | Loading commit data... | |
| README.md | Loading commit data... | |
| composer.json | Loading commit data... | |
| phpunit.xml.dist | Loading commit data... |