E
E
Evgeny Bukharev2014-11-14 17:55:58
Yii
Evgeny Bukharev, 2014-11-14 17:55:58

How to implement the functionality of printing (exporting to Excel) data from CGridView tables in Yii?

Hello,
The task is to implement the functionality of printing and exporting data from CGridView tables to Excel. The data in the tables is different, also in many tables there are separate filters, pagination, and so on.
How to transfer data from tables to a method that will implement the export functionality?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vit, 2014-11-14
@fornit1917

CGridView takes data from a DataProvider prepared with "filters, pagination and other things" in mind. Here from the same provider also scoop out the data for other representation.

S
Stanislav Tarasenko, 2014-11-19
@STarasenko

Create the same action as for CGridView, only pass the data not to the view, but to some library. For example like this: tyts .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question