/ Published in: PHP
Create a block to include a template file .phtml with just one line of code
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php echo $this->getLayout()->createBlock('Mage_Adminhtml_Block_Template', 'block-name')->setData('template', 'callouts/your-file.phtml')->toHtml() ?>
URL: http://snippi.net/magento-create-block-include-template-file-phtml-just-one-line-code