19 lines
513 B
PHP
19 lines
513 B
PHP
<?php
|
|
|
|
// No direct access.
|
|
use Joomla\CMS\Factory;
|
|
use Joomla\CMS\MVC\Controller\BaseController;
|
|
|
|
defined('_JEXEC') or die;
|
|
|
|
JLoader::discover('Clubs', JPATH_ROOT . '/administrator/components/com_clubs/mymodels');
|
|
JLoader::registerPrefix('AbstractClubs', JPATH_ROOT . '/administrator/components/com_clubs/abstract');
|
|
|
|
$controller = BaseController::getInstance("Clubs");
|
|
$input = Factory::getApplication()->input;
|
|
|
|
$task = $input->getCmd("task", "display");
|
|
|
|
$controller->execute($task);
|
|
$controller->redirect();
|