Return to Snippet

Revision: 57925
at June 15, 2012 04:37 by cpres

Initial Code
$layout = $this->getLayout();

if (!$layout ) {
  $layout = Mage::app()->getLayout();

echo $layout->createBlock('cms/block')->setBlockId('whatever_custom_id')->toHtml(); 


Initial URL

Initial Description
Adding HTML into custom blocks rather than hard coding makes it so people don't bother us devs to change sheite!

Initial Title
Get HTML from Magento CMS Block

Initial Tags

Initial Language