yii2-attachdocument
yii2-attach document add document to your model, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist deadly299/yii2-attachdocument "*"
or add, (*4)
"deadly299/yii2-attachdocument": "*"
php yii migrate --migrationPath=vendor/deadly299/yii2-attachdocument/migrations, (*5)
to the require section of your composer.json
file., (*6)
Usage
Once the extension is installed, simply use it in your code by :, (*7)
```php
= \deadly299\attachdocument\widgets\UploadFiles::widget(['model' => $model, 'dataOptionsLink' => ['data-fancybox' => 'single']]) ?>, (*8)