I've created a Custom Block based on this tutorial http://blog.magikcommerce.com/how-to-show-most-viewed-best-selling-products-in-magento-store
I would like to call the Block from my home.phtml template file.
I call my static blocks from:
<?php
$helper = Mage::helper('cms');
$source = Mage::getModel('cms/block')->load('my-block');
$processor = $helper->getPageTemplateProcessor();
$html = $processor->filter($source->getContent());
echo $html;
?>
And it works like a charm, of course! ' But how can I load dynamic blocks, in my case, inside template files.
My bestseller.phtml file is:
app/design/frontend/default/default/template/catalog/product/bestseller.phtml
And my class is:
Mage_Catalog_Block_Product_Bestseller