Adding Exportcsv To Web Application

Hello Everyone,

I want to add "ExportCSV" to my application.

I want it to export the filtered data depending on "Daterange" and "Selected Form" to the CSV.

Can anybody tell me how to do it?

Please Help Me…

Create criteria for export, get the data and use fputcsv for output. Nothing special.

How to create criteria and get the data? How to use fputcsv?

I’m new to yii framework. I dont know much about yii.

Can you please tell me step by step? Please help me…