Changes
Title
unchanged
Simple way to use AutoComplete using different ID and Display Value
Category
unchanged
Tutorials
Yii version
unchanged
Tags
unchanged
autocomplete, auto-complete, CAutoComplete
Content
changed
[...]
if($this->hasModel()) {
echo CHtml::textField($name,$this->value,$this->htmlOptions);
echo CHtml::activeHiddenField($this->model, $this->attribute);
}else {
echo //CHtml::textField($name,$this->value,$this->htmlOptions);
echo //CHtml::
texthiddenField($name,$this->value,$this->htmlOptions);
}
if($this->sourceUrl!==null)
$this->options['source']=CHtml::normalizeUrl($this->sourceUrl);
else[...]