_template_rss = 'pages/feed_rss.tpl'; $this->_template_atom = 'pages/feed_atom.tpl'; } /* Display the index page. */ public function index() { $feed = $_GET['f']; if ($feed == 'atom') { $template = $this->_template_atom; } else { $template = $this->_template_rss; } $news_items = NewsModel::getLatestNews(NEWS_ITEMS, true); header('Content-Type: text/xml; charset=UTF-8'); print $this->fetch( $template, array( 'news' => $news_items, ) ); return True; } } ?>