Snippets with the tag: layout

Call Static Block

Description

Call Static Block

Code

$this->getLayout()->createBlock('cms/block')->setBlockId('block-name')->toHtml();

Show CMS block in html

Description

Show CMS block in html

Code

<?= $this->getLayout()->createBlock('cms/block')->setBlockId('block_identifier')->toHtml(); ?>