/ Published in: PHP
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
Load block in template file
<?php
$blockID = 'myblock-identifier';
$block = $this->getLayout()->createBlock('cms/block')->setBlockId($blockID)->toHtml();
?>
Load block in XML
<reference name="left">
<block type="cms/block" name="sample_block">
<action method="setBlockId"><block_id>sample_block</block_id></action>
</block>
</reference>
Load block in CMS
{{block type="cms/block" block_id="my_block" template="cms/content.phtml"}}
Comments
 Subscribe to comments
                    Subscribe to comments
                
                