/ Published in: PHP
Adding HTML into custom blocks rather than hard coding makes it so people don't bother us devs to change sheite!
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $layout = $this->getLayout(); if (!$layout ) { $layout = Mage::app()->getLayout(); } echo $layout->createBlock('cms/block')->setBlockId('whatever_custom_id')->toHtml(); ?>