function rss() { system::$display = false; rss::setHTTPHeaders(); $this->smarty->setCacheID("RSS|ARTICLES"); if (!$this->smarty->isCached()) { $sqlData = rss::getLastPostsWithType("article"); $items = $sqlData->fetchAll(); $this->smarty->assign("items", $items); } echo $this->smarty->fetch(TPL_PATH . "/rss/rssMain.tpl", "RSS|ARTICLES"); }