Comparing
#4 with
#5
Yii version
1.1
Tags
AJAX,jquery,CJuiAutoComplete, ajax, jquery
Content
[...]

Here is what you can do in a very simple way, in your model controller:
```php
// In the access rules function
public function accessRules()[...]
In your view file _In my case it was _form_:
```php
<?php
$this->widget('zii.widgets.jui.CJuiAutoComplete', array(
'attribute' => 'color', // replace color with the attribute name
'model'=>$model,
'sourceUrl'=> '?r=colorCode/getColorAjax', // replace getColorAjax with your function name[...]