Difference between #4 and #5 of
Simple way to use AutoComplete using different ID and Display Value

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
[...]
6 0
13 followers
Viewed: 62 746 times
Version: 1.1
Category: Tutorials
Written by: raheelk2k
Last updated by: raheelk2k
Created on: Aug 1, 2012
Last updated: 11 years ago
Update Article

Revisions

View all history