PHP code example of ben-tech / yii2-dual-list-box
1. Go to this page and download the library: Download ben-tech/yii2-dual-list-box 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/ */
ben-tech / yii2-dual-list-box example snippets
echo bmte\duallistbox\Widget::widget([
'model' => $model,
'attribute' => 'data',
'data' => $data,
'data_id'=> 'id',
'data_value'=> 'text'
]);
$model = new YourModel();
$data = ModelQeury::find();