1. Go to this page and download the library: Download yii2-extensions/selectize 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/ */
yii2-extensions / selectize example snippets
use Yii2\Extension\Selectize\Selectize;
Selectize::widget(
[
'attribute' => 'tags',
'items' => ['foo', 'bar'],
'model' => new SelectizeModel(), // your model
],
);
use Yii2\Extension\Selectize\Selectize;
Selectize::widget(
[
'attribute' => 'tags',
'items' => ['foo', 'bar'],
'model' => new SelectizeModel(), // your model
'type' => Selectize::TYPE_TEXT, // `Selectize::TYPE_SELECT`, `Selectize::TYPE_TEXT`
],
);
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.