My code is:
<?php echo CHtml::activeDropDownList($model,'STUDENTE_MATRICOLA',CHtml::listData(anagrafe::model()->findAll(array('order'=>'COGNOME')),'ANAGRA_ID','COGNOME'));?>
But I would add a second parameter with COGNOME also NOME in the view of the attributes in the activeDropDownList.
But if appending the attribute NAME in the listData it's interpreted as a sttring groupField
How can i resolve this problem?

Help














