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(); }
public function index() { parent::index(); }