Files
Evgeniy Tkachenko 96bf647752 Add new guide upload-file
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?
2014-04-04 11:27:12 +03:00
..
2013-12-22 23:36:01 +01:00
2014-03-23 18:47:04 -04:00
2014-03-23 18:47:04 -04:00
2014-03-17 17:56:27 +01:00
2014-03-23 18:47:04 -04:00
2014-03-07 11:16:26 -05:00
2014-03-23 18:47:04 -04:00
2014-03-21 15:39:06 -04:00
2014-03-23 18:47:04 -04:00
2014-03-23 18:47:04 -04:00
2014-03-07 11:16:26 -05:00
2014-03-23 18:47:04 -04:00
2014-02-26 00:04:31 +04:00
2014-03-18 13:37:19 +01:00
2014-03-23 18:47:04 -04:00
2014-03-23 18:47:04 -04:00
2014-02-03 11:23:44 -05:00
2014-04-02 20:17:13 -04:00
2014-01-05 06:17:06 +04:00
2014-03-17 10:07:56 -04:00
2014-03-23 18:47:04 -04:00
2014-03-23 18:47:04 -04:00
2013-12-22 23:36:01 +01:00
2014-02-24 15:15:04 +01:00
2014-04-04 11:27:12 +03:00
2014-03-23 18:47:04 -04:00

This folder contains official Yii 2 guides documentation.

To add new guide, take the following steps:

  1. Create guide-name and put there relevant documentation;
  2. If guide has more then one word in name, then it should be with dashes, like: console-fixture.md, module-debug.md;
  3. If your guide is for console commands, than its name should follow convention: console-{command}.md;
  4. If your guide is for custom modules, than its name should follow convention: module-{moduleName}.md.