```php
public function actions() {
return array(
'searchCompany'=>array(
'class'=>'SearchAction',
'model'=>'Request',
'attribute'=>'company',
)
);
}
```
[...]
```php
<?php $this->widget('zii.widgets.jui.CJuiAutoComplete', array('model'=>$model,
'attribute'=>'company',
'htmlOptions'=> array('maxlength'=>300, 'class'=>'text'),
'sourceUrl'=>'searchCompany'));?>
```
This method is quite efficient and usually customer like it, because is based on the laziness of the users.