Magento: Call xml block directly in phtml file
You can call a block directly in your phtm files by using this code
1 |
<?php echo $this->getLayout()->createBlock('yourmodule/yourblock')->setTemplate('yourmodule/myfile.phtml')->toHtml(); ?> |