Search code examples
yiidownloadcgridview

Download Filtered Data using CGridView Yii


I'm using CGridView Widget to show my data. I have a button to download, but I don't know how to do it just with the filtered data. Any help or guidance will be appreciated.


Solution

  • The solution is to save the filtered data in a session variable. This filtered data are in the search function inside the model.