Пример #1
0
                }
            }
            $this->Template->rows = $rows;
        }
        // Add an explanation
        if (isset($arrData['explanation'])) {
            $this->loadLanguageFile('explain');
            $key = $arrData['explanation'];
            if (!is_array($GLOBALS['TL_LANG']['XPL'][$key])) {
                $this->Template->explanation = trim($GLOBALS['TL_LANG']['XPL'][$key]);
            } else {
                $this->Template->rows = $GLOBALS['TL_LANG']['XPL'][$key];
            }
        }
        $this->Template->theme = $this->getTheme();
        $this->Template->base = Environment::get('base');
        $this->Template->language = $GLOBALS['TL_LANGUAGE'];
        $this->Template->title = specialchars($GLOBALS['TL_LANG']['MSC']['helpWizardTitle']);
        $this->Template->charset = $GLOBALS['TL_CONFIG']['characterSet'];
        $this->Template->headline = $arrData['label'][0] ?: $field;
        $this->Template->helpWizard = $GLOBALS['TL_LANG']['MSC']['helpWizard'];
        $GLOBALS['TL_CONFIG']['debugMode'] = false;
        $this->Template->output();
    }
}
/**
 * Instantiate the controller
 */
$objHelp = new Help();
$objHelp->run();