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

37 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. kingbola99 adalah agen judi casino online terpercaya dengan berbagai macam jenis permainan menarik sportbook,casino,poker,domino,togel,pelayanan 24 jam ramah

    ReplyDelete
  8. 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
  9. 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
  10. franchise consultant Low cost entry and a unique opportunity to own your own profitable medical clinic / med spa. More than 50% of men over the age of 50 suffer from Erectile Dysfunction and Peyronie's Disease, it is men's version of menopause. You will also be able to treat both men and women for soft tissue pains (golf/tennis elbow; pains to legs, back and feet; and plantar fasciitis; and minimize or eliminate cellulite). These are needed services and you will provide them working part-time at your own clinic.

    ReplyDelete
  11. Impotence Solved GAINSWave is the premium brand of shockwave therapy used to treat erectile dysfunction, Peyronie’s disease, optimize sexual performance, treat soft tissue pains and cellulite. GAINSWave uses high frequency, low intensity sound waves to improve blood flow. It’s a safe and effective treatment that is drug free, surgery free, totally non-invasive, performed in-office and provides long-lasting results.

    ReplyDelete
  12. buy a franchise, Revolutionary business brokerage and franchise brokerage with low commissions, high quality work, willing to work with sellers and buyers, to ensure high quality deals. Confidentiality is #1. No upfront fees make us an industry leader. We will co-broker any deal and we give money back to buyers of businesses and franchises to add to their working capital.

    ReplyDelete
  13. Savings Guide Guide to your journey into the world of personal finance - from budgeting and savings to deciding on your credit card and insurance.

    ReplyDelete
  14. meal kits Making cooking a little easier. It's hard, it takes time and who's got the time after a long day of work, looking after kids and being on your feet all day ? I bet you don't and neither do I.. making cheap and tasty modern day meal kits the new normal among all the changes going on in our world today.

    ReplyDelete

  15. Thermal weight loss Authentic Option LLC offers collection of natural herbal products for skincare, hair care, and weight loss. We specialize in thermal weight loss, electrostimulation for muscle toning, cellulite removal, under-eye bags treatment and skincare products. We have an amazing range of beard growing products.

    ReplyDelete

  16. Reputation Management Reputation Repair Service removes criminal history information and deletes criminal records. Creates positive content that replaces negative search results.

    ReplyDelete
  17. Addictions facts Addiction stands as the top public health problem in America outstanding all other major diseases including stroke, heart diseases and even cancer. The population of addicts is far larger than the patients suffering from the three mentioned diseases in America with sufferers ranging in millions.

    ReplyDelete
  18. Smart Cart Cartridge Are you thinking that it would be better if a vape pen had in your hand? If you are; then take a deep breath and be cool. Keep reading this article till the end to get all information about a vape store near you. As you know that smoking hurts your health especially it is too dangerous for your lung. But the Vape Store is here to give you something better solution.

    ReplyDelete
  19. British shorthair for sale We have been branded as the best cattery for breeding healthy kittens and puppies ready for a home.

    ReplyDelete
  20. I have bookmarked it and I am looking forward to reading new articles. Keep up the good work!
    digital marketing training in delhi

    ReplyDelete
  21. motherhood CO.MOM is a fun new online magazine and social network community created by moms for moms. Read interesting articles, get advice from our agony aunt, aunt\y anne, learn how to earn an income online with our guru debbie or you can even seek medical advice from our resident physician dr samantha and relax while checking out the latest horoscopes from our trained mystic. Theres even a thriving forum community where moms of the world can get together and enjoy good conversation along with lots of other fun ways to kill some time with a cuppa when taking a break from being super mom at co.mom.

    ReplyDelete
  22. I am sure that this is going to help a lot of individuals.
    cloud courses

    ReplyDelete
  23. I can only imagine how much research has gone into this. I like your writing skills as it makes one feel included in the journey. Thank you for the valuable notes.
    ai using python training

    ReplyDelete