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.

People are also looking for solutions to the problem: php - Print array to template without template engine

Source

Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.