Example #1
0
 public function getPosts()
 {
     $category = $this->getCategory();
     if (!$category->getCatId()) {
         return false;
     }
     $collection = parent::_prepareCollection()->addCatFilter($category->getCatId());
     parent::_processCollection($collection, $category);
     return $collection;
 }