deadly299 / yii2-attachdocument
yii2-attach document add document to your model
Installs: 26
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ~2.0.0
This package is auto-updated.
Last update: 2025-03-07 20:01:37 UTC
README
yii2-attach document add document to your model
Installation
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist deadly299/yii2-attachdocument "*"
or add
"deadly299/yii2-attachdocument": "*"
php yii migrate --migrationPath=vendor/deadly299/yii2-attachdocument/migrations
to the require section of your composer.json
file.
Usage
Once the extension is installed, simply use it in your code by :
<?= \deadly299\attachdocument\widgets\UploadFiles::widget(['model' => $model, 'dataOptionsLink' => ['data-fancybox' => 'single']]) ?>