【发布时间】:2014-03-15 19:12:15
【问题描述】:
我有来自数据库的常量 id,我正在使用以下代码在我的 CGridView 中显示它们
'columns'=>array(
'id',
'name',
'email',
array(
'name' => 'deleted',
'value' => '$data->deleted == 1 ? "Yes" : "No"',//like this
),
)
现在当我通过 CGridview 搜索时,它只按数字搜索,即 1 或 2。我需要按 Yes 或 No 搜索。可以吗?
【问题讨论】: