How to get from submited form objects

Hello, I have a form where I add field for tags, I can get Id’s of tags, its simple, but what if I want to recieve array of Tag objects. Can somebody give some advice to me? Thanks!

Hi,

Can you share your code?

Hey,

Try to user this, hope ill solve your problem.

http://www.yiiframework.com/extension/select2/

as for tags we implemented this and find excellent.

sample

<?php echo $model->tags; $tags=explode(",",$model->tags);

          echo CHtml::textField('tags','',array('id'=&gt;'test'));


                      &#036;this-&gt;widget('ext.select2.ESelect2',array(


                        'selector'=&gt;'#test',


                          'data'=&gt;&#036;tags,


                        'options'=&gt;array(


                          'tags'=&gt;array(),


                            'width'=&gt;'100%',


                            'multiple'=&gt;'multiple',


                        ),


                      )); 


          ?&gt;