<?php
/**
 * @package     Joomla.Administrator
 * @subpackage  com_helloworld
 *
 * @copyright   Copyright (C) 2005 - 2018 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access to this file
defined('_JEXEC') or die('Restricted access');

use Joomla\CMS\Factory;
use Joomla\CMS\MVC\Controller\BaseController;

// Get an instance of the controller prefixed by HelloWorld
$controller = BaseController::getInstance('leaflet');

// Perform the Request task
$input = Factory::getApplication()->input;
$controller->execute($input->getCmd('task', 'display'));

// Redirect if set by the controller
$controller->redirect();


// ENTRY POINT FROM THE COMPONENT