/ 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
Expand |
Embed | Plain Text
<?php echo $this->getLayout()->createBlock('Mage_Adminhtml_Block_Template', 'block-name')->setData('template', 'callouts/your-file.phtml')->toHtml() ?>
You need to login to post a comment.
