public function initContent() { $this->php_self = 'widget'; parent::initContent(); $module = new Leomenusidebar(); echo $module->renderwidget(); die; }
<?php /** * Leo Theme for Prestashop 1.6.x * * @author http://www.leotheme.com * @copyright Copyright (C) October 2013 LeoThemes.com <@emai:leotheme@gmail.com> * <*****@*****.**>.All rights reserved. * @license GNU General Public License version 2 */ include_once '../../config/config.inc.php'; include_once '../../init.php'; require_once _PS_MODULE_DIR_ . 'leomenusidebar/leomenusidebar.php'; $context = Context::getContext(); $module = new Leomenusidebar(); $id_shop = Tools::getValue('id_shop') ? Tools::getValue('id_shop') : 0; echo $module->renderwidget($id_shop); die;