Hello All, I am a beginner with Yii, While I was using a CSqlDataProvider in my view, I was not able to make use of my ‘filter’ in the CGridView
$this->widget(‘zii.widgets.grid.CGridView’, array(
'id'=>'Id',
'dataProvider' =>new CSqlDataProvider($sql),
// 'filter'=>$model,//Shows an error when I do this
Please, post your thoughts on this one.
Thank You.