Ejemplo n.º 1
0
 public function index()
 {
     if ($this->RequestHandler->isRss()) {
         $feed_id = intval($this->passedArgs[0]);
         if ($feed_id > 0) {
             $o['limit'] = 20;
             $o['order'] = 'Item.created DESC';
             $o['conditions'] = array("Feed.id" => $feed_id);
             $items = $this->Feed->Item->find('all', $o);
             $this->set(compact('items'));
         } else {
             throw new NotFoundException(__("Invalid Feed ID"));
         }
     }
     parent::index();
 }
Ejemplo n.º 2
0
 public function index()
 {
     parent::index();
 }