<?php
/**
 *  Leo Theme for Prestashop 1.6.x
 *
 * @author    http://www.leotheme.com
 * @copyright Copyright (C) October 2013 LeoThemes.com <@emai:leotheme@gmail.com>
 *               <info@leotheme.com>.All rights reserved.
 * @license   GNU General Public License version 2
 */

if (!defined('_PS_VERSION_')) {
    # module validation
    exit;
}

class LeobootstrapmenuWidgetModuleFrontController extends ModuleFrontController
{
    public $php_self;

    public function init()
    {
        parent::init();

        require_once( $this->module->getLocalPath().'leomenusidebar.php' );
    }

    public function initContent()
    {
        $this->php_self = 'widget';
        parent::initContent();

        $module = new Leomenusidebar();

        echo $module->renderwidget();
        die;
    }
}
