magento insert CMS Blocks into template (.phtml) files without any layout modifications


/ Published in: PHP
Save to your folder(s)

The quick and easy way to insert CMS Blocks into template (.phtml) files without any layout modifications:


Copy this code and paste it in your HTML
  1. <?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('your_cms_block_identifier')->toHtml() ?>

URL: http://www.molotovbliss.com/blog/tag/magento/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.