Generating A Report

Hey,

lets image I want to create a report, similar to google analytics. So I need for the dashboard some data (user over the last 7 days, clicks over the last 7 days, average per day…). Up to now I’m calling a method in my model that returns an array where each value of that array is another array containing the information. Basically array(‘average’=>300, ‘last7days’=>array(‘today’=>3, ‘yesterday’=>4’)…).

Is there a possibility in yii to do that better? I have heard of DataProvider?

push

Any suggestions/ideas?