Esempio n. 1
0
/**
 * specific controller requested
 */
$redirect = JRequest::getVar('redirect', null);
$view = JRequest::getVar('view', null);
$class = JRequest::getVar('controller');
$ctrller = !is_null($redirect) ? $redirect : $view;
$ctrller = is_null($ctrller) ? $class : $ctrller;
$ctrller = is_null($ctrller) ? "core" : $ctrller;
/**
 * Proxy mode calls made here
 */
/**
 * Application/Core/System/Resource ?
 */
$isApp = TuiyoLoader::controllerIsApp($ctrller);
if (!$isApp) {
    $controller = TuiyoLoader::controller($ctrller, true);
} else {
    JRequest::setVar("app", $ctrller);
    $controller = TuiyoLoader::controller("apps", true);
}
/**
 * Perform the Request task
 */
$controller->execute(JRequest::getVar('do', null));
/**
 * Close the TuiYo pInterface
 */
TuiyoAPI::close();
//$loca = $GLOBALS["API"]->get("localization" , "en_GB");