Hi,
If I have a ‘User’ model with ‘id’, ‘firstname’ and ‘lastname’, how can I display ‘firstname lastname’ in a CHtml::activeDropDownList()?
Thanks.
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 . I found the answer here:
http://www.yiiframework.com/forum/index.php?/topic/12855-concatenate-strings-in-chtmllistdata/