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'),[...]