Tags Input For Yii2
The preferred way to install this extension is through composer.
Either run
php composer.phar require --prefer-dist xinyeweb/yii2-tagsinput "*"
or add
"xinyeweb/yii2-tagsinput": "*"
to the require section of your composer.json
file.
Once the extension is installed, simply use it in your code by :
<?= $form->field($model, 'tags')->widget(\xinyeweb\tagsinput\TagsInput::className()) ?>
提交過去的數據格式為 tag1,tag2,tag3