| Current Path : /home/jeromecohp/www/administrator/components/com_emailbeautifier/ |
| Current File : /home/jeromecohp/www/administrator/components/com_emailbeautifier/controller.php |
<?php
/**
* @package EmailBeautifier
* @subpackage com_emailbeautifier
*
* @author Techjoomla <extensions@techjoomla.com>
* @copyright Copyright (C) 2009 - 2022 Techjoomla. All rights reserved.
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU/GPL
*/
// No direct access.
defined('_JEXEC') or die('Restricted access');
use Joomla\CMS\MVC\Controller\BaseController;
use Joomla\CMS\Factory;
/**
* EmailBeautifier main Controller
*
* @package EmailBeautifier
* @subpackage com_emailbeautifier
* @since 1.5
*/
class EmailbeautifierController extends BaseController
{
/**
* Method to display a view.
*
* @param boolean $cachable If true, the view output will be cached
* @param array $urlparams An array of safe url parameters and their variable types, for valid values see {@link InputFilter::clean()}.
*
* @return JController This object to support chaining.
*
* @since 1.5
*/
public function display($cachable = false, $urlparams = false)
{
$view = Factory::getApplication()->input->getCmd('view', 'cp');
Factory::getApplication()->input->set('view', $view);
parent::display();
return $this;
}
}