Posted By

nico65 on 09/03/09


Tagged

magento


Versions (?)

Who likes this?

2 people have marked this snippet as a favorite

umang_nine
endorfin


Magento Create a block to include a template file .phtml with just one line of code


 / Published in: PHP
 

URL: http://snippi.net/magento-create-block-include-template-file-phtml-just-one-line-code

Create a block to include a template file .phtml with just one line of code

  1. <?php echo $this->getLayout()->createBlock('Mage_Adminhtml_Block_Template', 'block-name')->setData('template', 'callouts/your-file.phtml')->toHtml() ?>

Report this snippet  

You need to login to post a comment.