Magento Question:
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();
Previous Question | Next Question |
What are the benefits of namespace (package) in magento? | How to add an external javascript/css file to Magento? |