1

在我的CGridview过滤器部分,我需要占位符。这在 Yii 中可能吗?

或者这是否可以通过扩展到包含占位符的CGridview容纳标签来实现。filterOptions如果是,如何扩展 CGridview?

4

1 回答 1

0

I don't think that extending class is need for this purpose, just use

'filter'=>CHtml::activeTextField($model, attribute, 
                 array('placeholder'=>'place holder text'))),
于 2013-01-05T11:27:04.340 回答