Good Day!
I need help in trying to figure out why the autocomplete showing all the data via ajax and not filtering it based on the user input. Here is my code.
For the View
<?php
$this->widget(‘zii.widgets.jui.CJuiAutoComplete’, array(
‘name’=>‘clientName’,
‘id’=>‘clientName’,
‘source’=>$this->createUrl(‘updateclient’),
‘options’=>array(
));
?>
for the Controller
public function actionUpdateclient()
{
$data_value =array();
$data_value = array("red","green","blue","white","black");
echo CJSON::encode($data_value);
Yii::app()->end();
}
I want to test it before I use my dynamic model to it. Hope someone could help thanks!