Changes
Title
unchanged
How to display images in CJuiAutoComplete without extenstions
Category
unchanged
Tutorials
Yii version
changed
1.1
Tags
changed
AJAX,jquery,CJuiAutoComplete, ajax, jquery
Content
changed
[...]
![autocomplete thumb](http://media-cache-ec0.pinimg.com/736x/e5/63/16/e563163b9de20b24c1d1a49306f0089d.jpg "Autocomplete with thumb Example ")
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[...]