Magento - How to render a page in popup or dialog? -
i want render .phtml file popup or dialog in pages or how convert page loading popup or dialog box. way solve that.
i've used in past:
<?php require_once('app/mage.php'); umask(0); $layout = mage::app()->getlayout(); $layout->getupdate()->addhandle('default')->load(); $layout->generatexml()->generateblocks(); mage::getdesign()->settheme('mytheme'); $layout->getblock('head')->settitle('regular post delivery details'); echo '<html><head>'; echo $layout->getblock('head')->tohtml(); echo '</head>'; echo '<body><div class="special-content">'; echo $layout ->createblock('cms/block') ->setblockid('estimated-regular-delivery-times') ->tohtml(); echo '</div></body></html>'; ?> just make php file in web root.
Comments
Post a Comment