Multicomplete Extension

Hello Friends,

I tried to use multicomplete extension but mesh-up with it.

As in the documentation, to access data dynamically it suggest to use ‘sourceUrl’ but it targets for a new page instead of user define method/function.

<?php $this->widget('', array(




          //'source'=>array('ac1', 'ac2', 'ac3'),


          // additional javascript options for the autocomplete plugin









Does it have restriction to define function instead of page name (as search.html)?

And in the next code provided by the documentation:


          if(Yii::app()->request->isAjaxRequest && !empty($term))


              $variants = array();

              $criteria = new CDbCriteria;



              $tags = tagsModel::model()->findAll($criteria);



                foreach($tags as $tag)


                    $variants[] = $tag->attributes['tag'];



              echo CJSON::encode($variants);



            throw new CHttpException(400,'Invalid request. Please do not repeat this request again.');


what does the variable $term represent??

I have configured full as extension multicomplete

error : "MultiComplete must specify "model" and "attribute" or "name" property values."

help ?