etaginputwidget This input widget provide tag input widget

ETagInputWidget v.0.0.1

ETagInputWidget - is input widget for input where you need to place multiple tags for model instance.

Additions:

I made it for my own purposes, I know it not pretty good, and I want to improve it in future. For now it only send the strings with tags names. In future I want to make it work with objects(or with Tag id`s)

Basic usage:

1) Download the extension and place it in extensions directory;

2) In your form view place this piece of code:

$this->widget('ext.yii_tagger.ETagInputWidget',
    array(
        'model'     => Genres::model(),
        'attribute' => 'name',
    )
);

3) Then in controller:

$tags = explode(',', $_POST['tags_submit_field']);

And you able to save it in some attribute.

Resources

0 0
1 follower
175 downloads
Yii Version: 1.1
License: MIT
Category: User Interface
Developed by: panzer_commander
Created on: Mar 12, 2015
Last updated: 9 years ago

Downloads

show all

Related Extensions