Im not sure about the ‘source’ potion…if my admin.php is located “C:\XAMPP\htdocs\ASAES\protected\views\engineering\admin.php” and my controller “C:\XAMPP\htdocs\ASAES\protected\controllers\EngineeringController” should I put there: ‘source’=>$this->createUrl(’…/…/controllers/Engineering/suggestCountry’),?
2.)
Where’s the part that inserts the suggest array data displaying the queried names?
Are you saying that you’re getting no options in the suggestion box? You should ensure that the ajax request that is being used to build the suggestions is returning the data that you expect.
What does your browser’s console show as the response to the ajax request?
$this->widget('zii.widgets.jui.CJuiAutoComplete', array(
'name' => 'suggestName',
'sourceUrl' => array('engineering/suggest'),
'value' => $model->lastName,
'options' => array(
'showAnim' => 'fold',
//remove if you dont need to store the id, like i do...
'select' => 'js:function(event, ui){ jQuery("#Daytrip_idNo").val(ui.item["id"]); }'
),
'htmlOptions'=>array(
'size'=>'40'
),
));