Simple way to use AutoComplete using different ID and Display Value

Comparing #4 with #5

Revision #5 was created by raheelk2k raheelk2k on Aug 1, 2012, 10:47:08 AM.

Commented out non-model fields.

Content

[...]
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
[...]