1

In my CGridview filter section, I need to place placeholder. Is this possible in Yii?

Or is this possible by extending CGridview to accomodate filterOptions tag, which contains the place holder. If its, how to extend CGridview?

arun
  • 3,667
  • 3
  • 29
  • 54
Nisha haridas
  • 332
  • 1
  • 8
  • 22

1 Answers1

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'))),
arun
  • 3,667
  • 3
  • 29
  • 54