Php Flow » Magento

Magento static block

Add Magento static blocks to your page easily! Simply copy this line of code below where you want the static block to appear and change the ‘block_id’ to the identifier of the static block you created.

  1. <?php echo $this->getLayout()->createBlock(‘cms/block’)->setBlockId(‘block_id’)->toHtml() ?>   

Did you enjoy this article? Share it!

About the Author:

Hi, This is Parvez Alam from India. I am software developer with 4 years’ experience in web development. I have submitted articles on PHP, Mysql, Magento,CSS, HTML, jQuery, web designing and social API. You can subscribe to my blog via RSS/Twitter/Google plus and Facebook. parvez1487(at)gmail(dot)com

Random Posts

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>