Magento - Calling a static block in phtml file

In Magento, calling a static block in your phtml template file  is pretty simple. You can do this using a single line of code.

<?php echo $this->getLayout()->createBlock('cms/block')->setBlockId('my_static_block_name')->toHtml() ?>

Hope this helps to solve someone's problem ! For any other queries please feel free to write us at prashcreations(at)gmail(dot)com

13 comments:

  1. Wow, Excellent post. This article is really very interesting and effective. I think its must be helpful for us. thanks for sharing your informative.
    memory enhancement

    ReplyDelete
  2. At a time when affordable homes seller are in short supply, the houses in Cobridge — or ‘Poundland’, as locals have dubbed it — represent a barely believable bargain.

    ReplyDelete
  3. I am not like other independent Pune Pune Escorts Agency
    who neglect the responsibilities, etiquettes and professional aspects to serve gentlemen.

    I offer companionship that gives you your money's worth. You don't waste your money at all but you get
    immense pleasure of mind, body and soul. With high-quality companionship where I always keep myself clean

    ReplyDelete
  4. CHRONIC BACK PAIN
    Not all pain that persists will turn into chronic pain.
    Different people experience chronic pain very differently.
    Likewise, the effectiveness of a particular treatment for
    chronic pain will often differ from person to person.
    For example, a particular medication or injection
    for a herniated disc may provide effective pain relief
    for some people but not for others.

    One problem is that not all patients with similar conditions
    develop chronic pain, and it is not understood why some people
    will develop chronic pain. Also, a condition that appears
    relatively minor can lead to severe chronic pain,
    and a serious condition can be barely painful at all.

    ReplyDelete

  5. Running your own virtual private server (VPS) was once limited to either profitable
    side projects or those with money to burn. The relatively high monthly costs (often $40-$60 per month)
    made it too expensive for personal projects that didn’t generate income and more serious endeavors often
    used dedicated hardware, leaving VPS as a kind of …

    ReplyDelete
  6. RS GOLD
    CHINA: We seller by gold . The Reserve Bank of china and the finance ministry are in talks to scrap bulk import licences for a gold-silver alloy used by domestic refiners, months after relaxing curbs on gold imports, officials with direct knowledge of the discussions told Reuters. Gold is china's second-highest import in value terms, and a jump in imports widened the current account deficit in 2013, sparking the country's worst currency turmoil since a...
    for more information click here:

    ReplyDelete
  7. Phenq PhenQ is a all-natural dietary supplement for fat burning that combines the best qualities of many other supplements into a single pill.

    ReplyDelete
  8. Dissertation Help
    Ordering the papers at Grade Miners.co.uk is one of the easiest things to do. Knowing that students are in need of a Dissertation writing services uk because they don’t have too much time means they won’t waste any time at all.

    Essay Tigers is the finest solution of your academic problems, Our expert writers offer you exceptional online Essay Writing Service in UK at cheap.

    We are the best dissertation writing service providers in UK that have all range of ... writers, students can get all that they want in form of Dissertation Help. ... results, discussion, conclusion); Research article

    ReplyDelete
  9. kingbola99 adalah agen judi casino online terpercaya dengan berbagai macam jenis permainan menarik sportbook,casino,poker,domino,togel,pelayanan 24 jam ramah

    ReplyDelete
  10. FlowerDeliveryNYC.com is a company that aims to provide the highest quality floral arrangements for you to make your event or occasion stand out. What distinct www.FlowerDeliveryNYC.com from other florists is that they are high professionals and not telemarketers. The company promises to offer its services all 7 days a week and 365 days a year with a prompt delivery on the very same day you order to make your occasion an everlasting one. We make sure to consider your event as our own and provide with services that can make your event a hit.
    Products
    Tiniest details matter the most. Whether it is a simple thank you, congratulations, get well soon, sorry, or love and romance, we have got it all covered for you. When you place an order with us, you obviously want it to be done right. We promise to fill every order exactly as it is required by the customer.
    Our products are divided under the categories of;
    • Luxury collection
    • Corporate gifts
    • Gift baskets
    • DOG – able collection
    Whether it is happy news or a sad one, flowers are something that is required at any sort of occasion. For the happy occasions like birthdays, anniversary, graduation, sorry, I am thinking of you or get well soon we have a whole different variety of flowers. Whereas, when it comes to sympathy, we have a huge collection of baskets, vase arrangements, casket sprays, standing sprays, crosses, hearts and baskets.
    Corporate Services

    ReplyDelete
  11. I am a Certified Public Accountant and have been preparing personal, partnership and corporate tax returns for over 25 years. I prepare most tax returns for $100 to $250. l pride myself on the professional and attentive service I give to each and every client no matter how large or small. I can prepare your tax return remotely as I have many clients spread throughout the United States. Please call me at 973-988-2107 or email me at dannyp@thekinetixgroup.com for a free price quote. I look forward to hearing from you.

    ReplyDelete