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 add() { $this->___set(); $this->set('editing', false); parent::add(); }
public function index() { parent::index(); }
public function view($id = null) { $m = ClassRegistry::init('Rss.UsersRole'); $this->set('users_with_role', $m->findAllByRoleId($id)); parent::view($id); }
public function view($id = null) { $m = ClassRegistry::init('Rss.ItemsCategory'); $this->set('items', $m->findAllByCategoryId($id)); parent::view($id); }