【发布时间】:2013-05-31 00:37:43
【问题描述】:
我想在下拉列表中发布组值。如何在值字段中连接id 和分组 (type)?
CHtml::listData($eventLocationByUser, 'id', 'caption', 'type');
我试过了:
CHtml::listData($eventLocationByUser, 'id'.'type', 'caption', 'type');
但返回空值。
【问题讨论】:
标签: php javascript yii