PHP code example of anmaslov / yii2-autocomplete-widget
1. Go to this page and download the library: Download anmaslov/yii2-autocomplete-widget 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/ */
anmaslov / yii2-autocomplete-widget example snippets
$data = Link::find()
->select('title as value')
->asArray()
->all();
use anmaslov\autocomplete\AutoComplete;
echo AutoComplete::widget([
'name' => 'link',
'data' => $model,
'clientOptions' => [
'minChars' => 2,
],
])
$ php composer.phar