PHP code example of ws-cv-ua / yii2-tagsinput
1. Go to this page and download the library: Download ws-cv-ua/yii2-tagsinput 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/ */
ws-cv-ua / yii2-tagsinput example snippets
<?= \wscvua\yii2tagsinput\AutoloadExample::widget();
<?= $form->field($model, 'tags')->widget(\wscvua\yiitagsinput\TagsWidget::className(), [
'jsOptions' => [
'autocomplete' => [
'source' => [
'tagtest1',
'tagtest2',
]
]
]
]);