Magento : Static Block Inside Phtml : This is somehow a must trick for every magento developer. Static block are useful blocks in which you can put text , image and magento variables .Here is the code by which you can add static block inside phtml file
<?php echo $this->getLayout()->createBlock(’cms/block’)->setBlockId(’my-new-block’)->toHtml() ?>
Be the first to comment.