hi all ,i had tried this to perform autocomplete ,it works on with static data ,but i need to fetch data from db ,what is the way.kindly help me,
Thanks in advance
<?php
$this->widget('bootstrap.widgets.TbSelect2', array(
'asDropDownList' => false,
'model' => $model,
'attribute'=>'Name',
'options' => array(
'tags' => array('aaa','bbb'),
'placeholder' => 'Choose Users',
'width' => '40%',
'tokenSeparators' => array(',', ' ')
)));
?>