Thursday, February 13, 2014

include template file in magento

(1) template file in .phtml file

<?php echo $this->getLayout()->createBlock(‘core/template’)->setTemplate(‘templateFolder/yourtemplate.phtml’)->toHtml(); ?>

(2) CMS page

{{block type=”core/template” template=”templateFolder/your_template.phtml”}}

No comments:

Post a Comment

About

Blogger templates