Beispiel #1
0
 function getNewsfeedsRoute($id, $catid)
 {
     $needles = array('category' => (int) $catid, 'categories' => null);
     //Find the itemid
     $itemid = NewsfeedsHelperRoute::_findItem($needles);
     $itemid = $itemid ? '&Itemid=' . $itemid : '';
     //Create the link
     $link = 'index.php?option=com_newsfeeds&view=newsfeed&id=' . $id . '&catid=' . $catid . $itemid;
     return $link;
 }