PHP code example of singularity / yii2-dropzoneinput
1. Go to this page and download the library: Download singularity/yii2-dropzoneinput library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
singularity / yii2-dropzoneinput example snippets
use singularity\dropzoneinput\DropzoneInput;
...
<?= $form->field($model, 'imageIds'])->widget(DropzoneInput::class, [
'files' => $data
]);
use singularity\dropzoneinput\DropzoneInput;
...
<?= DropzoneInput::widget([
'model' => $model,
'attribute' => 'imageIds',
'files' => $data
])