2021-03-05 03:08:47 +00:00
|
|
|
<?php
|
|
|
|
/**
|
|
|
|
* @package Joomla.Component.Builder
|
|
|
|
*
|
|
|
|
* @created 30th April, 2015
|
2024-03-09 19:47:28 +00:00
|
|
|
* @author Llewellyn van der Merwe <https://dev.vdm.io>
|
|
|
|
* @git Joomla Component Builder <https://git.vdm.dev/joomla/Component-Builder>
|
2021-03-05 03:08:47 +00:00
|
|
|
* @copyright Copyright (C) 2015 Vast Development Method. 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');
|
|
|
|
?>
|
|
|
|
###BOM###
|
|
|
|
|
|
|
|
// No direct access to this file
|
2024-04-21 23:07:22 +00:00
|
|
|
defined('_JEXEC') or die('Restricted access');
|
|
|
|
|
2024-04-27 13:51:57 +00:00
|
|
|
###CUSTOM_POWER_AUTOLOADER###
|
2021-03-05 03:08:47 +00:00
|
|
|
|
|
|
|
###ADMIN_COMPONENT_HEADER###
|
|
|
|
|
|
|
|
// Access check.
|
2024-03-09 19:47:28 +00:00
|
|
|
if (!Factory::getUser()->authorise('core.manage', 'com_###component###'))
|
2021-03-05 03:08:47 +00:00
|
|
|
{
|
2024-03-09 19:47:28 +00:00
|
|
|
throw new NotAllowed(Text::_('JERROR_ALERTNOAUTHOR'), 403);
|
|
|
|
}
|
2021-03-05 03:08:47 +00:00
|
|
|
|
|
|
|
// Add CSS file for all pages
|
2024-03-09 19:47:28 +00:00
|
|
|
Html::_('stylesheet', 'components/com_###component###/assets/css/admin.css', ['version' => 'auto']);
|
|
|
|
Html::_('script', 'components/com_###component###/assets/js/admin.js', ['version' => 'auto']);
|
2021-03-05 03:08:47 +00:00
|
|
|
|
|
|
|
// require helper files
|
2021-12-21 14:44:50 +00:00
|
|
|
JLoader::register('###Component###Helper', __DIR__ . '/helpers/###component###.php');###HELPER_EMAIL###
|
2022-03-09 23:46:45 +00:00
|
|
|
JLoader::register('JHtmlBatch_', __DIR__ . '/helpers/html/batch_.php');###LICENSE_LOCKED_INT######ADMIN_GLOBAL_EVENT###
|
2021-03-05 03:08:47 +00:00
|
|
|
|
|
|
|
// Get an instance of the controller prefixed by ###Component###
|
2024-03-09 19:47:28 +00:00
|
|
|
$controller = BaseController::getInstance('###Component###');
|
2021-03-05 03:08:47 +00:00
|
|
|
|
|
|
|
// Perform the Request task
|
2024-03-09 19:47:28 +00:00
|
|
|
$controller->execute(Factory::getApplication()->input->get('task'));
|
2021-03-05 03:08:47 +00:00
|
|
|
|
|
|
|
// Redirect if set by the controller
|
|
|
|
$controller->redirect();
|