Difference between #4 and #5 of
How to display images in CJuiAutoComplete without extenstions

Revision #5 has been created by samdark on Jan 20, 2019, 9:03:57 PM with the memo:

Set version
« previous (#4)

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
[...]
0 0
2 followers
Viewed: 10 002 times
Version: 1.1
Category: Tutorials
Written by: Asmaa
Last updated by: samdark
Created on: Oct 9, 2014
Last updated: 2 years ago
Update Article

Revisions

View all history