Magento Question:
Download Questions PDF

How to include CMS block in template file(.phtml)?

Answer:

Access block's content from .phtml template file by:

echo $this->getLayout()->createBlock('cms/block')->setBlockId('static_block_id')->toHTML();

Download Magento Interview Questions And Answers PDF

Previous QuestionNext Question
What are the benefits of namespace (package) in magento?How to add an external javascript/css file to Magento?