>> Sometimes we need to update any block through ajax or need to reload a particular block. You can get the html with the following code.
$this->loadLayout();
$compareBlock = $this->getLayout()->createBlock('catalog/product_compare_sidebar');
$compareBlock->setTemplate('catalog/product/compare/sidebar.phtml');
$html = $compareBlock->toHtml();
No comments:
Post a Comment