2016-01-30 20:28:43 +00:00
|
|
|
<?php
|
2018-08-07 13:27:08 +00:00
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
|
|
|
* @author Llewellyn van der Merwe <http://www.joomlacomponentbuilder.com>
|
|
|
|
* @github Joomla Component Builder <https://github.com/vdm-io/Joomla-Component-Builder>
|
|
|
|
* @copyright Copyright (C) 2015 - 2018 Vast Development Method. All rights reserved.
|
|
|
|
* @license GNU General Public License version 2 or later; see LICENSE.txt
|
|
|
|
*/
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// No direct access to this file
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
?>
|
|
|
|
###BOM###
|
|
|
|
|
|
|
|
// No direct access to this file
|
|
|
|
defined('_JEXEC') or die('Restricted access');
|
2018-08-07 12:25:26 +00:00
|
|
|
JHtml::_('behavior.tabstate');
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Set the component css/js
|
|
|
|
$document = JFactory::getDocument();
|
|
|
|
$document->addStyleSheet('components/com_###component###/assets/css/site.css');
|
|
|
|
$document->addScript('components/com_###component###/assets/js/site.js');
|
|
|
|
|
|
|
|
// Require helper files
|
2018-08-07 12:25:26 +00:00
|
|
|
JLoader::register('###Component###Helper', __DIR__ . '/helpers/###component###.php'); ###HELPER_EMAIL###
|
|
|
|
JLoader::register('###Component###HelperRoute', __DIR__ . '/helpers/route.php');###LICENSE_LOCKED_INT### ###SITE_GLOBAL_EVENT###
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Get an instance of the controller prefixed by ###Component###
|
|
|
|
$controller = JControllerLegacy::getInstance('###Component###');
|
|
|
|
|
|
|
|
// Perform the request task
|
2018-08-07 12:25:26 +00:00
|
|
|
$controller->execute(JFactory::getApplication()->input->get('task'));
|
2016-01-30 20:28:43 +00:00
|
|
|
|
|
|
|
// Redirect if set by the controller
|
|
|
|
$controller->redirect();
|