N
N
Nicholas2014-05-31 16:54:09
Yii
Nicholas, 2014-05-31 16:54:09

DataProvider in YII and data processing?

Good afternoon!
There was a task before transfer of the data in a widget to process them. I don't understand where is this done?
I receive data from ActiveRecord in DataProvider.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Alexander Zelenin, 2014-05-31
Sumrak @NikolasSumrak

for example, this option: received through AR / QueryBuilder, then processed with output to an array, the array was transferred to the widget using ArrayDataProvider.

N
Nikolai, 2014-06-03
Sumrak

Scored, did all the processing in sql, and sent everything to the SqlDataProvider

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question