Return to Snippet

Revision: 17399
at September 3, 2009 02:46 by nico65


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

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

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

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

Initial Tags
magento

Initial Language
PHP