Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Cactivedataprovider With Cgridview Filter

$
0
0
I've spent hours reading forums etc. trying to see how to use a filter in CGridview when the dataProvider comes from CActiveDataProvider.

It's so easy when you just say:
'dataProvider'=>$model->search(),
'filter'=>$model,

I don't understand why it doesn't work when the data provider is created from CActiveDataProvider. Surely it is possible, but the forums that talk about this seem too complicated and say different things. If someone could please post a very simple example (just one column grid even) of how to set this up I (and many others I expect) would be incredibly grateful!

Viewing all articles
Browse latest Browse all 18717

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>