Code for calling some phtml file into view.phtml file or on cms page in magento 1 - Magesan

Code for calling some phtml file into view.phtml file or on cms page in magento 1

Code for calling some phtml file into view.phtml file or on cms page in magento 1

<?php echo $this->getLayout()->createBlock('core/template')->setTemplate('catalog/product/list/mostviewedproducts.phtml')->toHtml(); ?>
Code For Calling The Template File In Some CMS Page Or In Static Block

{{block type="core/template" template="product/hello.phtml"}}

Leave a Reply

Your email address will not be published. Required fields are marked *.

*
*
You may use these <abbr title="HyperText Markup Language">HTML</abbr> tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>