In Yii framework how can I Combine columns and show as display string in dropdownlist
问题 I have a dropDownList in my view, it is populating from clients table, the table contains columns like first_name , last_name , id etc., Now I want to show the first_name and last_name as display text and id as value in drop down list, I'm done with id as value and first_name as display text, but here I want to combine those columns ( first_name and last_name ) and use as display text. in model function getClients() { $Clients = Client::model()->findAll(); $list = CHtml::listData($Clients ,