function execute($task) { $item = JRequest::getString('item'); if ($item) { $controllername = 'J' . APP_PREFIX . 'Admin' . ucfirst($item) . 'Controller'; require_once JPATH_COMPONENT_ADMINISTRATOR . DS . 'pricing' . DS . strtolower($item) . DS . 'controllers' . DS . 'admin.php'; $controller = new $controllername(); $res = $controller->execute($task); $this->setRedirect($controller->redirect, $controller->message, $controller->messageType); return $res; } else { return parent::execute($task); } }
function __construct() { parent::__construct(); $MyApp = JTheFactoryApplication::getInstance(); JLoader::register('JTheFactoryThemesHelper', $MyApp->app_path_admin . 'themes/helper/themes.php'); }
function __construct() { parent::__construct('payments'); JHtml::addIncludePath($this->basepath . DS . 'html'); }
function __construct() { $MyApp = JTheFactoryApplication::getInstance(); $this->formxml = JPATH_ROOT . DS . "administrator" . DS . "components" . DS . APP_EXTENSION . DS . $MyApp->getIniValue('configxml'); parent::__construct(); }
function __construct() { $lang = JFactory::getLanguage(); $lang->load('thefactory.' . strtolower($this->modulename)); parent::__construct(); }