function RssView($blogInfo, $profile, $data = array()) { $this->BlogView($blogInfo, "", SMARTY_VIEW_CACHE_CHECK, $data); $ts = new TemplateSetStorage(); if (!$ts->templateExists($this->_profile, 'rss')) { // if not, then we will use the default one $this->_profile = RSS_VIEW_DEFAULT_PROFILE; } // we need to overwrite the $this->_template object with the Template object of our choice... $this->_profile = $profile; $templateService = new TemplateService(); $this->_template = $templateService->CachedTemplate($this->_profile, 'rss', $this->_blogInfo); // set the correct content type $this->setContentType('text/xml'); }