PHP code example of devgroup / yii2-dropzone
1. Go to this page and download the library: Download devgroup/yii2-dropzone 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/ */
devgroup / yii2-dropzone example snippets
use devgroup\dropzone\DropZone;
DropZone::widget(
[
'name' => 'file', // input name or 'model' and 'attribute'
'url' => '', // upload url
'storedFiles' => [], // stores files
'eventHandlers' => [], // dropzone event handlers
'sortable' => true, // sortable flag
'sortableOptions' => [], // sortable options
'htmlOptions' => [], // container html options
'options' => [], // dropzone js options
]
)
php composer.phar