Your IP : 216.73.216.231


Current Path : /home/digilove/public_html/administrator/components/com_sj_newsletter/
Upload File :
Current File : /home/digilove/public_html/administrator/components/com_sj_newsletter/controller.php

<?php

/**
 * @version    1.0.0
 * @package    Com_Sj_newsleterpopup
 * @author     YouTech Company <contact@ytcvn.com>
 * @copyright  Copyright (c) 2016 YouTech Company
 * @license    GNU General Public License version 2 or later; see LICENSE.txt
 */
// No direct access
defined('_JEXEC') or die;

/**
 * Class Sj_newsletterController
 *
 * @since  1.6
 */
class Sj_newsletterController extends JControllerLegacy
{
	/**
	 * Method to display a view.
	 *
	 * @param   boolean  $cachable   If true, the view output will be cached
	 * @param   mixed    $urlparams  An array of safe url parameters and their variable types, for valid values see {@link JFilterInput::clean()}.
	 *
	 * @return   JController This object to support chaining.
	 *
	 * @since    1.5
	 */
	public function display($cachable = false, $urlparams = false)
	{
		require_once JPATH_COMPONENT . '/helpers/sj_newsletter.php';

		$view = JFactory::getApplication()->input->getCmd('view', 'emails');
		JFactory::getApplication()->input->set('view', $view);

		parent::display($cachable, $urlparams);

		return $this;
	}
}