Magento Question:

Download Job Interview Questions and Answers PDF

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

Magento Interview Question
Magento Interview Question

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?