Revision #5 has been created by raheelk2k on Aug 1, 2012, 10:47:08 AM with the memo:
Commented out non-model fields.
« previous (#4)
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[...]