PHP code example of flywi / yii2-multiselect
1. Go to this page and download the library: Download flywi/yii2-multiselect 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/ */
flywi / yii2-multiselect example snippets
...
echo $form->field($model, 'attributeId')->widget(\flywi\select\MultiSelectWidget::class, [
'data' => [
// select options list(key => value)
],
'clientOptions' => [
],
]);
...
$ php composer.phar