Difference between #5 and #6 of
Using CAutoComplete to display one value and submit another

Revision #6 has been created by Alex Muir on Jul 2, 2009, 6:02:04 AM with the memo:

Removed 'echo' from the $this->widget line - causes error in comments.
« previous (#5) next (#7) »

Changes

Title unchanged

Using CAutoComplete to display one value and submit another

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

Content changed

[...]
</ol>

Now, in your view file, embed the following code within your form:

```php
<?php
echo $this->widget('CAutoComplete',
array(
//name of the html field that will be generated
'name'=>'user_name',
//replace controller/action with real ids
'url'=>array('controller/action'),
[...]
7 3
11 followers
Viewed: 64 459 times
Version: 1.1
Category: Tutorials
Written by: luoshiben
Last updated by: mohammad sharif ahrari
Created on: Mar 25, 2009
Last updated: 11 years ago
Update Article

Revisions

View all history