function generateTemplate() { $templateService = new TemplateService(); $this->_template = $templateService->customTemplate($this->_templateName, "summary/rss", true); // by default, these compiled files would be saved and cached to tmp/summary/rss but that's too // many folders so we'll overwrite the default settings set by TemplateService::customTemplate() // and save the files to tmp/summary/ with the other summary pages $config =& Config::getConfig(); $templateTmpFolder = $config->getValue("temp_folder") . '/summary'; $this->_template->cache_dir = $templateTmpFolder; $this->_template->compile_dir = $templateTmpFolder; }
function render() { // load the locale $this->_getLocale(); // set the view character set based on the locale $this->setCharset($this->_locale->getCharset()); parent::render(); $templateService = new TemplateService(); $template = $templateService->customTemplate($this->_templateName, "summary"); $this->_params->setValue("version", new Version()); $this->_params->setValue("locale", $this->_locale); $template->assign($this->_params->getAsArray()); print $template->fetch(); }
function generateTemplate() { $templateService = new TemplateService(); $this->_template = $templateService->customTemplate($this->_templateName, "summary", true); }