public static function doTemplate($moduleName, $templateName, $params = array()) { $templateText = Locator::getInstance()->getTemplate($moduleName, $templateName); return Processor::doText($templateText, $params); }
public function checkMultilingualSetup($multilingual = true) { $multilingual = true; // we emulate multilingual in any way to make sure that language code is written in URLs $templateName = 'scripts.' . ($multilingual ? 'polyglot' : 'monoglot') . '.js'; $fileName = __DIR__ . "/Templates/{$templateName}.html"; $this->addScriptSnippet(Processor::doText(file_get_contents($fileName)), true); }