To do this, you need to make changes to two files
First, you will need to edit the controller. In this example, I'm going to add special offers to my homepage.
So open the controller file catalog/controller/common/home.php . Somewhere before this line $this->response->setOutput($this->render()); add the following
$this->data['special_block'] = $module = $this->getChild('module/special', array( 'limit' => 5, 'image_width' => 80, 'image_height' => 80 ));
An array is the settings for the module. Please note that the location, position, status and sort order are not included, as they are irrelevant here. I also used special_block as a unique key for the content, in order to avoid its conflict with any other elements that may need to be rendered
Then in your template file you just need to use <?php echo $special_block; ?> <?php echo $special_block; ?> wherever you want the module to be
source share