[SOVLED] CHtml::activeDropDownList concatenate two model attributes

Hi,

If I have a ‘User’ model with ‘id’, ‘firstname’ and ‘lastname’, how can I display ‘firstname lastname’ in a CHtml::activeDropDownList()?

Thanks.

Sorry - should have searched the forum more thoroughly :rolleyes: . I found the answer here:

http://www.yiiframework.com/forum/index.php?/topic/12855-concatenate-strings-in-chtmllistdata/