php - Magento custom report - access generated data
924
I've created a custom report in Magento fine, but need to add a summery of the data at the bottom. How do I access the generated data to create a summery? Thanks. More information...
$gridBlock = $this->getLayout()->getBlock('adminhtml_report.grid');
$collection = $gridBlock->getCollection();
$item = $collection->getItems();
But the items are empty, foreach on $collection returns empty as well. The data are shown in the grid area.