Example #1
0
 public function on_page_view()
 {
     Loader::library('controller', pkgHandle);
     $path = EasyNewsController::getRssPagePath() . '?c=' . $this->cParentID;
     $imagepath = EasyNewsController::getPackageUrl() . '/templates/img/rss.png';
     $rss = '<link rel="alternate" type="application/rss+xml" title="Feed" href="' . $path . '" />';
     $this->addHeaderItem($rss, 'CONTROLLER');
 }
Example #2
0
 public static function getRssPagePath()
 {
     return EasyNewsController::site('/' . EasyNewsController::rssPagePath);
 }