Magento Question:
Download Job Interview Questions and Answers 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();
echo $this->getLayout()->createBlock('cms/block')->setBlockId('static_block_id')->toHTML();
Download Magento Interview Questions And Answers
PDF
Previous Question | Next Question |
What are the benefits of namespace (package) in magento? | How to add an external javascript/css file to Magento? |